mock

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonteCarloClient

type MonteCarloClient struct {
	mock.Mock
}

MonteCarloClient is an autogenerated mock type for the MonteCarloClient type

func NewMonteCarloClient

func NewMonteCarloClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MonteCarloClient

NewMonteCarloClient creates a new instance of MonteCarloClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MonteCarloClient) EXPECT

func (*MonteCarloClient) ExecRaw

func (_m *MonteCarloClient) ExecRaw(ctx context.Context, query string, variables map[string]interface{}, options ...graphql.Option) ([]byte, error)

ExecRaw provides a mock function with given fields: ctx, query, variables, options

func (*MonteCarloClient) Mutate

func (_m *MonteCarloClient) Mutate(ctx context.Context, m interface{}, variables map[string]interface{}, options ...graphql.Option) error

Mutate provides a mock function with given fields: ctx, m, variables, options

func (*MonteCarloClient) Query

func (_m *MonteCarloClient) Query(ctx context.Context, q interface{}, variables map[string]interface{}, options ...graphql.Option) error

Query provides a mock function with given fields: ctx, q, variables, options

type MonteCarloClient_ExecRaw_Call

type MonteCarloClient_ExecRaw_Call struct {
	*mock.Call
}

MonteCarloClient_ExecRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecRaw'

func (*MonteCarloClient_ExecRaw_Call) Return

func (*MonteCarloClient_ExecRaw_Call) Run

func (_c *MonteCarloClient_ExecRaw_Call) Run(run func(ctx context.Context, query string, variables map[string]interface{}, options ...graphql.Option)) *MonteCarloClient_ExecRaw_Call

func (*MonteCarloClient_ExecRaw_Call) RunAndReturn

func (_c *MonteCarloClient_ExecRaw_Call) RunAndReturn(run func(context.Context, string, map[string]interface{}, ...graphql.Option) ([]byte, error)) *MonteCarloClient_ExecRaw_Call

type MonteCarloClient_Expecter

type MonteCarloClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MonteCarloClient_Expecter) ExecRaw

func (_e *MonteCarloClient_Expecter) ExecRaw(ctx interface{}, query interface{}, variables interface{}, options ...interface{}) *MonteCarloClient_ExecRaw_Call

ExecRaw is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • variables map[string]interface{}
  • options ...graphql.Option

func (*MonteCarloClient_Expecter) Mutate

func (_e *MonteCarloClient_Expecter) Mutate(ctx interface{}, m interface{}, variables interface{}, options ...interface{}) *MonteCarloClient_Mutate_Call

Mutate is a helper method to define mock.On call

  • ctx context.Context
  • m interface{}
  • variables map[string]interface{}
  • options ...graphql.Option

func (*MonteCarloClient_Expecter) Query

func (_e *MonteCarloClient_Expecter) Query(ctx interface{}, q interface{}, variables interface{}, options ...interface{}) *MonteCarloClient_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • q interface{}
  • variables map[string]interface{}
  • options ...graphql.Option

type MonteCarloClient_Mutate_Call

type MonteCarloClient_Mutate_Call struct {
	*mock.Call
}

MonteCarloClient_Mutate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mutate'

func (*MonteCarloClient_Mutate_Call) Return

func (*MonteCarloClient_Mutate_Call) Run

func (_c *MonteCarloClient_Mutate_Call) Run(run func(ctx context.Context, m interface{}, variables map[string]interface{}, options ...graphql.Option)) *MonteCarloClient_Mutate_Call

func (*MonteCarloClient_Mutate_Call) RunAndReturn

func (_c *MonteCarloClient_Mutate_Call) RunAndReturn(run func(context.Context, interface{}, map[string]interface{}, ...graphql.Option) error) *MonteCarloClient_Mutate_Call

type MonteCarloClient_Query_Call

type MonteCarloClient_Query_Call struct {
	*mock.Call
}

MonteCarloClient_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*MonteCarloClient_Query_Call) Return

func (*MonteCarloClient_Query_Call) Run

func (_c *MonteCarloClient_Query_Call) Run(run func(ctx context.Context, q interface{}, variables map[string]interface{}, options ...graphql.Option)) *MonteCarloClient_Query_Call

func (*MonteCarloClient_Query_Call) RunAndReturn

func (_c *MonteCarloClient_Query_Call) RunAndReturn(run func(context.Context, interface{}, map[string]interface{}, ...graphql.Option) error) *MonteCarloClient_Query_Call

Jump to

Keyboard shortcuts

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