Documentation ¶
Index ¶
- func ClearDB() (err error)
- func LoadEnvFile()
- type Env
- func (env *Env) AddTestUser() (err error)
- func (env *Env) ClearDB() (err error)
- func (env *Env) ClientAuthInfoWriter() runtime.ClientAuthInfoWriterFunc
- func (env *Env) CreateTestTopic(t *testing.T, client *googlePubsub.Client, topicName string)
- func (env *Env) DeleteTestTopic(t *testing.T, client *googlePubsub.Client, topicName string)
- func (env *Env) GetXApigatewayAPIUserinfo() string
- func (env *Env) RemoveRole(role domain.Role) (err error)
- func (env *Env) SetRole(role domain.Role) (err error)
- func (env *Env) Transport() runtime.ClientTransport
- type TestClientTransport
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEnvFile ¶
func LoadEnvFile()
Types ¶
type Env ¶
type Env struct { User firebase.UserInfo UserRepo UserRepository // contains filtered or unexported fields }
func (*Env) AddTestUser ¶
func (*Env) ClientAuthInfoWriter ¶
func (env *Env) ClientAuthInfoWriter() runtime.ClientAuthInfoWriterFunc
func (*Env) CreateTestTopic ¶
func (*Env) DeleteTestTopic ¶
func (*Env) GetXApigatewayAPIUserinfo ¶
func (*Env) Transport ¶
func (env *Env) Transport() runtime.ClientTransport
type TestClientTransport ¶
ClientTransport implements ClientTransport from github.com/go-openapi/runtime it abstracts the request/client operation handling.
func NewTestClientTransport ¶
func NewTestClientTransport(handler http.Handler) *TestClientTransport
func (*TestClientTransport) Submit ¶
func (t *TestClientTransport) Submit(op *runtime.ClientOperation) (v interface{}, err error)
Submit method handles a client operation. client operation is transformed into an http.Request and submitted against the test server response is parsed the same way as the generated client does.
Click to show internal directories.
Click to hide internal directories.