Documentation ¶
Index ¶
- type Operation
- type TestContext
- func (tc *TestContext) NewOperation(ctx context.Context) *Operation
- func (tc *TestContext) NewOperationNoTenant(ctx context.Context) *Operation
- func (tc *TestContext) RunOperation(ctx context.Context, cli *gcli.Client, req *gcli.Request, resp interface{}) error
- func (tc *TestContext) RunOperationNoTenant(ctx context.Context, cli *gcli.Client, req *gcli.Request, resp interface{}) error
- func (tc *TestContext) RunOperationWithCustomTenant(ctx context.Context, cli *gcli.Client, tenant string, req *gcli.Request, ...) error
- func (tc *TestContext) RunOperationWithoutTenant(ctx context.Context, cli *gcli.Client, req *gcli.Request, resp interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
func (*Operation) WithTenant ¶
type TestContext ¶
type TestContext struct { Graphqlizer gqlizer.Graphqlizer GQLFieldsProvider gqlizer.GqlFieldsProvider }
TestContext contains dependencies that help executing tests
var Tc *TestContext
func NewTestContext ¶
func NewTestContext() (*TestContext, error)
func (*TestContext) NewOperation ¶
func (tc *TestContext) NewOperation(ctx context.Context) *Operation
func (*TestContext) NewOperationNoTenant ¶
func (tc *TestContext) NewOperationNoTenant(ctx context.Context) *Operation
func (*TestContext) RunOperation ¶
func (*TestContext) RunOperationNoTenant ¶
func (*TestContext) RunOperationWithCustomTenant ¶
func (*TestContext) RunOperationWithoutTenant ¶
Click to show internal directories.
Click to hide internal directories.