mocks

package
v0.0.0-...-9c9b480 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	RBArgs MockResolveBooleanArgs
	RNArgs MockResolveNumberArgs
	RSArgs MockResolveStringArgs
	ROArgs MockResolveObjectArgs

	Testing *testing.T
}

func (*MockClient) GetInstance

func (m *MockClient) GetInstance() schemaV1.ServiceClient

type MockResolveBooleanArgs

type MockResolveBooleanArgs struct {
	InFK   string
	InCtx  map[string]interface{}
	Out    schemaV1.ResolveBooleanResponse
	OutErr error
}

type MockResolveNumberArgs

type MockResolveNumberArgs struct {
	InFK   string
	InCtx  map[string]interface{}
	Out    schemaV1.ResolveNumberResponse
	OutErr error
}

type MockResolveObjectArgs

type MockResolveObjectArgs struct {
	InFK   string
	InCtx  map[string]interface{}
	OutMap map[string]interface{}
	Out    schemaV1.ResolveObjectResponse
	OutErr error
}

type MockResolveStringArgs

type MockResolveStringArgs struct {
	InFK   string
	InCtx  map[string]interface{}
	Out    schemaV1.ResolveStringResponse
	OutErr error
}

type MockServiceClient

type MockServiceClient struct {
	RBArgs MockResolveBooleanArgs
	RNArgs MockResolveNumberArgs
	RSArgs MockResolveStringArgs
	ROArgs MockResolveObjectArgs

	Testing *testing.T
}

func (*MockServiceClient) ResolveBoolean

func (*MockServiceClient) ResolveNumber

func (*MockServiceClient) ResolveObject

func (*MockServiceClient) ResolveString

Jump to

Keyboard shortcuts

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