mocks

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func (*API) GetAnime

func (_m *API) GetAnime(id int) (*model.Anime, int, error)

GetAnime provides a mock function with given fields: id

func (*API) GetAnimeArticle

func (_m *API) GetAnimeArticle(id int) ([]model.ArticleItem, int, error)

GetAnimeArticle provides a mock function with given fields: id

func (*API) GetAnimeCharacter

func (_m *API) GetAnimeCharacter(id int) ([]model.CharacterItem, int, error)

GetAnimeCharacter provides a mock function with given fields: id

func (*API) GetAnimeClub

func (_m *API) GetAnimeClub(id int) ([]model.ClubItem, int, error)

GetAnimeClub provides a mock function with given fields: id

func (*API) GetAnimeEpisode

func (_m *API) GetAnimeEpisode(id int, page int) ([]model.Episode, int, error)

GetAnimeEpisode provides a mock function with given fields: id, page

func (*API) GetAnimeMoreInfo

func (_m *API) GetAnimeMoreInfo(id int) (string, int, error)

GetAnimeMoreInfo provides a mock function with given fields: id

func (*API) GetAnimeNews

func (_m *API) GetAnimeNews(id int) ([]model.NewsItem, int, error)

GetAnimeNews provides a mock function with given fields: id

func (*API) GetAnimePicture

func (_m *API) GetAnimePicture(id int) ([]string, int, error)

GetAnimePicture provides a mock function with given fields: id

func (*API) GetAnimeRecommendation

func (_m *API) GetAnimeRecommendation(id int) ([]model.Recommendation, int, error)

GetAnimeRecommendation provides a mock function with given fields: id

func (*API) GetAnimeReview

func (_m *API) GetAnimeReview(id int, page int) ([]model.Review, int, error)

GetAnimeReview provides a mock function with given fields: id, page

func (*API) GetAnimeStaff

func (_m *API) GetAnimeStaff(id int) ([]model.Role, int, error)

GetAnimeStaff provides a mock function with given fields: id

func (*API) GetAnimeStats

func (_m *API) GetAnimeStats(id int) (*model.Stats, int, error)

GetAnimeStats provides a mock function with given fields: id

func (*API) GetAnimeVideo

func (_m *API) GetAnimeVideo(id int, page int) (*model.Video, int, error)

GetAnimeVideo provides a mock function with given fields: id, page

func (*API) GetAnimeWithGenre

func (_m *API) GetAnimeWithGenre(id int, page int) ([]model.AnimeItem, int, error)

GetAnimeWithGenre provides a mock function with given fields: id, page

func (*API) GetArticle

func (_m *API) GetArticle(id int) (*model.Article, int, error)

GetArticle provides a mock function with given fields: id

func (*API) GetArticleTag

func (_m *API) GetArticleTag() ([]model.ArticleTagItem, int, error)

GetArticleTag provides a mock function with given fields:

func (*API) GetArticles

func (_m *API) GetArticles(page int, tag string) ([]model.ArticleItem, int, error)

GetArticles provides a mock function with given fields: page, tag

func (*API) GetCharacter

func (_m *API) GetCharacter(id int) (*model.Character, int, error)

GetCharacter provides a mock function with given fields: id

func (*API) GetCharacterArticle

func (_m *API) GetCharacterArticle(id int) ([]model.ArticleItem, int, error)

GetCharacterArticle provides a mock function with given fields: id

func (*API) GetCharacterClub

func (_m *API) GetCharacterClub(id int) ([]model.ClubItem, int, error)

GetCharacterClub provides a mock function with given fields: id

func (*API) GetCharacterOgraphy

func (_m *API) GetCharacterOgraphy(_type string, id int) ([]model.Role, int, error)

GetCharacterOgraphy provides a mock function with given fields: _type, id

func (*API) GetCharacterPicture

func (_m *API) GetCharacterPicture(id int) ([]string, int, error)

GetCharacterPicture provides a mock function with given fields: id

func (*API) GetCharacterVA added in v1.2.0

func (_m *API) GetCharacterVA(id int) ([]model.Role, int, error)

GetCharacterVA provides a mock function with given fields: id

func (*API) GetClub

func (_m *API) GetClub(id int) (*model.Club, int, error)

GetClub provides a mock function with given fields: id

func (*API) GetClubMember

func (_m *API) GetClubMember(id int, page int) ([]model.ClubMember, int, error)

GetClubMember provides a mock function with given fields: id, page

func (*API) GetClubPicture

func (_m *API) GetClubPicture(id int) ([]string, int, error)

GetClubPicture provides a mock function with given fields: id

func (*API) GetClubRelated

func (_m *API) GetClubRelated(id int) (*model.ClubRelated, int, error)

GetClubRelated provides a mock function with given fields: id

func (*API) GetClubs

func (_m *API) GetClubs(page int) ([]model.ClubSearch, int, error)

GetClubs provides a mock function with given fields: page

func (*API) GetGenres

func (_m *API) GetGenres(_type string) ([]model.ItemCount, int, error)

GetGenres provides a mock function with given fields: _type

func (*API) GetMagazine

func (_m *API) GetMagazine(id int, page int) ([]model.MangaItem, int, error)

GetMagazine provides a mock function with given fields: id, page

func (*API) GetMagazines

func (_m *API) GetMagazines() ([]model.ItemCount, int, error)

GetMagazines provides a mock function with given fields:

func (*API) GetManga

func (_m *API) GetManga(id int) (*model.Manga, int, error)

GetManga provides a mock function with given fields: id

func (*API) GetMangaArticle

func (_m *API) GetMangaArticle(id int) ([]model.ArticleItem, int, error)

GetMangaArticle provides a mock function with given fields: id

func (*API) GetMangaCharacter

func (_m *API) GetMangaCharacter(id int) ([]model.Role, int, error)

GetMangaCharacter provides a mock function with given fields: id

func (*API) GetMangaClub

func (_m *API) GetMangaClub(id int) ([]model.ClubItem, int, error)

GetMangaClub provides a mock function with given fields: id

func (*API) GetMangaMoreInfo

func (_m *API) GetMangaMoreInfo(id int) (string, int, error)

GetMangaMoreInfo provides a mock function with given fields: id

func (*API) GetMangaNews

func (_m *API) GetMangaNews(id int) ([]model.NewsItem, int, error)

GetMangaNews provides a mock function with given fields: id

func (*API) GetMangaPicture

func (_m *API) GetMangaPicture(id int) ([]string, int, error)

GetMangaPicture provides a mock function with given fields: id

func (*API) GetMangaRecommendation

func (_m *API) GetMangaRecommendation(id int) ([]model.Recommendation, int, error)

GetMangaRecommendation provides a mock function with given fields: id

func (*API) GetMangaReview

func (_m *API) GetMangaReview(id int, page int) ([]model.Review, int, error)

GetMangaReview provides a mock function with given fields: id, page

func (*API) GetMangaStats

func (_m *API) GetMangaStats(id int) (*model.Stats, int, error)

GetMangaStats provides a mock function with given fields: id

func (*API) GetMangaWithGenre

func (_m *API) GetMangaWithGenre(id int, page int) ([]model.MangaItem, int, error)

GetMangaWithGenre provides a mock function with given fields: id, page

func (*API) GetNews

func (_m *API) GetNews(id int) (*model.News, int, error)

GetNews provides a mock function with given fields: id

func (*API) GetNewsList

func (_m *API) GetNewsList(page int, tag string) ([]model.NewsItem, int, error)

GetNewsList provides a mock function with given fields: page, tag

func (*API) GetNewsTag

func (_m *API) GetNewsTag() (*model.NewsTag, int, error)

GetNewsTag provides a mock function with given fields:

func (*API) GetPeople

func (_m *API) GetPeople(id int) (*model.People, int, error)

GetPeople provides a mock function with given fields: id

func (*API) GetPeopleArticle

func (_m *API) GetPeopleArticle(id int) ([]model.ArticleItem, int, error)

GetPeopleArticle provides a mock function with given fields: id

func (*API) GetPeopleCharacter

func (_m *API) GetPeopleCharacter(id int) ([]model.PeopleCharacter, int, error)

GetPeopleCharacter provides a mock function with given fields: id

func (*API) GetPeopleManga

func (_m *API) GetPeopleManga(id int) ([]model.Role, int, error)

GetPeopleManga provides a mock function with given fields: id

func (*API) GetPeopleNews

func (_m *API) GetPeopleNews(id int) ([]model.NewsItem, int, error)

GetPeopleNews provides a mock function with given fields: id

func (*API) GetPeoplePicture

func (_m *API) GetPeoplePicture(id int) ([]string, int, error)

GetPeoplePicture provides a mock function with given fields: id

func (*API) GetPeopleStaff

func (_m *API) GetPeopleStaff(id int) ([]model.Role, int, error)

GetPeopleStaff provides a mock function with given fields: id

func (*API) GetProducer

func (_m *API) GetProducer(id int, page int) ([]model.AnimeItem, int, error)

GetProducer provides a mock function with given fields: id, page

func (*API) GetProducers

func (_m *API) GetProducers() ([]model.ItemCount, int, error)

GetProducers provides a mock function with given fields:

func (*API) GetRecommendation

func (_m *API) GetRecommendation(_type string, id1 int, id2 int) (*model.Recommendation, int, error)

GetRecommendation provides a mock function with given fields: _type, id1, id2

func (*API) GetRecommendations

func (_m *API) GetRecommendations(_type string, page int) ([]model.Recommendation, int, error)

GetRecommendations provides a mock function with given fields: _type, page

func (*API) GetReview

func (_m *API) GetReview(id int) (*model.Review, int, error)

GetReview provides a mock function with given fields: id

func (*API) GetReviews

func (_m *API) GetReviews(_type string, page int) ([]model.Review, int, error)

GetReviews provides a mock function with given fields: _type, page

func (*API) GetSeason

func (_m *API) GetSeason(season string, year int) ([]model.AnimeItem, int, error)

GetSeason provides a mock function with given fields: season, year

func (*API) GetTopAnime

func (_m *API) GetTopAnime(_type int, page int) ([]model.TopAnime, int, error)

GetTopAnime provides a mock function with given fields: _type, page

func (*API) GetTopCharacter

func (_m *API) GetTopCharacter(page int) ([]model.TopCharacter, int, error)

GetTopCharacter provides a mock function with given fields: page

func (*API) GetTopManga

func (_m *API) GetTopManga(_type int, page int) ([]model.TopManga, int, error)

GetTopManga provides a mock function with given fields: _type, page

func (*API) GetTopPeople

func (_m *API) GetTopPeople(page int) ([]model.TopPeople, int, error)

GetTopPeople provides a mock function with given fields: page

func (*API) GetUser

func (_m *API) GetUser(username string) (*model.User, int, error)

GetUser provides a mock function with given fields: username

func (*API) GetUserAnime

func (_m *API) GetUserAnime(query model.UserListQuery) ([]model.UserAnime, int, error)

GetUserAnime provides a mock function with given fields: query

func (*API) GetUserClub

func (_m *API) GetUserClub(username string) ([]model.Item, int, error)

GetUserClub provides a mock function with given fields: username

func (*API) GetUserFavorite

func (_m *API) GetUserFavorite(username string) (*model.UserFavorite, int, error)

GetUserFavorite provides a mock function with given fields: username

func (*API) GetUserFriend

func (_m *API) GetUserFriend(username string, page int) ([]model.UserFriend, int, error)

GetUserFriend provides a mock function with given fields: username, page

func (*API) GetUserHistory

func (_m *API) GetUserHistory(username string, _type string) ([]model.UserHistory, int, error)

GetUserHistory provides a mock function with given fields: username, _type

func (*API) GetUserManga

func (_m *API) GetUserManga(query model.UserListQuery) ([]model.UserManga, int, error)

GetUserManga provides a mock function with given fields: query

func (*API) GetUserRecommendation

func (_m *API) GetUserRecommendation(username string, page int) ([]model.Recommendation, int, error)

GetUserRecommendation provides a mock function with given fields: username, page

func (*API) GetUserReview

func (_m *API) GetUserReview(username string, page int) ([]model.Review, int, error)

GetUserReview provides a mock function with given fields: username, page

func (*API) GetUserStats

func (_m *API) GetUserStats(username string) (*model.UserStats, int, error)

GetUserStats provides a mock function with given fields: username

func (*API) SearchAnime

func (_m *API) SearchAnime(query model.Query) ([]model.AnimeSearch, int, error)

SearchAnime provides a mock function with given fields: query

func (*API) SearchCharacter

func (_m *API) SearchCharacter(query string, page int) ([]model.CharacterSearch, int, error)

SearchCharacter provides a mock function with given fields: query, page

func (*API) SearchClub

func (_m *API) SearchClub(query model.ClubQuery) ([]model.ClubSearch, int, error)

SearchClub provides a mock function with given fields: query

func (*API) SearchManga

func (_m *API) SearchManga(query model.Query) ([]model.MangaSearch, int, error)

SearchManga provides a mock function with given fields: query

func (*API) SearchPeople

func (_m *API) SearchPeople(query string, page int) ([]model.PeopleSearch, int, error)

SearchPeople provides a mock function with given fields: query, page

func (*API) SearchUser

func (_m *API) SearchUser(query model.UserQuery) ([]model.UserSearch, int, error)

SearchUser provides a mock function with given fields: query

type Cacher

type Cacher struct {
	mock.Mock
}

Cacher is an autogenerated mock type for the Cacher type

func (*Cacher) Close

func (_m *Cacher) Close() error

Close provides a mock function with given fields:

func (*Cacher) Delete

func (_m *Cacher) Delete(key string) error

Delete provides a mock function with given fields: key

func (*Cacher) Get

func (_m *Cacher) Get(key string, data interface{}) error

Get provides a mock function with given fields: key, data

func (*Cacher) Set

func (_m *Cacher) Set(key string, data interface{}) error

Set provides a mock function with given fields: key, data

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func (*Logger) Debug

func (_m *Logger) Debug(format string, args ...interface{})

Debug provides a mock function with given fields: format, args

func (*Logger) Error

func (_m *Logger) Error(format string, args ...interface{})

Error provides a mock function with given fields: format, args

func (*Logger) Fatal

func (_m *Logger) Fatal(format string, args ...interface{})

Fatal provides a mock function with given fields: format, args

func (*Logger) Info

func (_m *Logger) Info(format string, args ...interface{})

Info provides a mock function with given fields: format, args

func (*Logger) Trace

func (_m *Logger) Trace(format string, args ...interface{})

Trace provides a mock function with given fields: format, args

func (*Logger) Warn

func (_m *Logger) Warn(format string, args ...interface{})

Warn provides a mock function with given fields: format, args

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL