Documentation ¶
Index ¶
- func FxE2E(t *testing.T) fx.Option
- func GetGorm(t *testing.T) *gorm.DB
- func GetWebApp(t TB, m Mock) *fiber.App
- func MockAuthRepo(m domain.AuthRepo) fx.Option
- func MockCache(mock cache.Generic) fx.Option
- func MockCharacterRepo(m domain.CharacterRepo) fx.Option
- func MockEmptyCache() fx.Option
- func MockEpisodeRepo(m domain.EpisodeRepo) fx.Option
- func MockIndexRepo(repo domain.IndexRepo) fx.Option
- func MockPersonRepo(m domain.PersonRepo) fx.Option
- func MockRevisionRepo(repo domain.RevisionRepo) fx.Option
- func MockSubjectRepo(m domain.SubjectRepo) fx.Option
- func MockUserRepo(repo domain.UserRepo) fx.Option
- func RequireEnv(t *testing.T, envs ...string)
- type Mock
- type Request
- func (r *Request) Delete(path string) *Request
- func (r *Request) Execute(app *fiber.App, msTimeout ...int) *Response
- func (r *Request) Get(path string) *Request
- func (r *Request) Header(key, value string) *Request
- func (r *Request) JSON(v interface{}) *Request
- func (r *Request) Patch(path string) *Request
- func (r *Request) Post(path string) *Request
- func (r *Request) Put(path string) *Request
- func (r *Request) Query(key, value string) *Request
- func (r *Request) StdRequest() *http.Request
- type Response
- type TB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockCharacterRepo ¶
func MockCharacterRepo(m domain.CharacterRepo) fx.Option
func MockEmptyCache ¶
func MockEpisodeRepo ¶
func MockEpisodeRepo(m domain.EpisodeRepo) fx.Option
func MockPersonRepo ¶
func MockPersonRepo(m domain.PersonRepo) fx.Option
func MockRevisionRepo ¶ added in v0.10.1
func MockRevisionRepo(repo domain.RevisionRepo) fx.Option
func MockSubjectRepo ¶
func MockSubjectRepo(m domain.SubjectRepo) fx.Option
Types ¶
type Mock ¶
type Mock struct { SubjectRepo domain.SubjectRepo PersonRepo domain.PersonRepo CharacterRepo domain.CharacterRepo AuthRepo domain.AuthRepo EpisodeRepo domain.EpisodeRepo UserRepo domain.UserRepo IndexRepo domain.IndexRepo RevisionRepo domain.RevisionRepo Cache cache.Generic }
type Request ¶ added in v0.11.1
type Request struct { Response interface{} HTTPVerb string ContentType string Endpoint string HTTPBody []byte Cookies []*http.Cookie // contains filtered or unexported fields }
func (*Request) StdRequest ¶ added in v0.11.1
type Response ¶ added in v0.11.1
type Response struct { Header http.Header Body []byte StatusCode int // e.g. 200 // contains filtered or unexported fields }
func (*Response) BodyString ¶ added in v0.11.1
func (*Response) ExpectCode ¶ added in v0.11.1
Click to show internal directories.
Click to hide internal directories.