testctx

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) Run

func (o *Operation) Run(req *gcli.Request, cli *gcli.Client, resp interface{}) error

func (*Operation) WithTenant

func (o *Operation) WithTenant(tenant string) *Operation

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 (tc *TestContext) RunOperation(ctx context.Context, cli *gcli.Client, req *gcli.Request, resp interface{}) error

func (*TestContext) RunOperationNoTenant

func (tc *TestContext) RunOperationNoTenant(ctx context.Context, cli *gcli.Client, req *gcli.Request, resp interface{}) error

func (*TestContext) RunOperationWithCustomTenant

func (tc *TestContext) RunOperationWithCustomTenant(ctx context.Context, cli *gcli.Client, tenant string, req *gcli.Request, resp interface{}) error

func (*TestContext) RunOperationWithoutTenant

func (tc *TestContext) RunOperationWithoutTenant(ctx context.Context, cli *gcli.Client, req *gcli.Request, resp interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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