mocks

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 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 FixtureLoader

type FixtureLoader struct {
	mock.Mock
}

FixtureLoader is an autogenerated mock type for the FixtureLoader type

func NewFixtureLoader

func NewFixtureLoader(t interface {
	mock.TestingT
	Cleanup(func())
}) *FixtureLoader

NewFixtureLoader creates a new instance of FixtureLoader. 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 (*FixtureLoader) EXPECT

func (_m *FixtureLoader) EXPECT() *FixtureLoader_Expecter

func (*FixtureLoader) Load

func (_m *FixtureLoader) Load(ctx context.Context, group string, fixtureSets []fixtures.FixtureSet) error

Load provides a mock function with given fields: ctx, group, fixtureSets

type FixtureLoader_Expecter

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

func (*FixtureLoader_Expecter) Load

func (_e *FixtureLoader_Expecter) Load(ctx interface{}, group interface{}, fixtureSets interface{}) *FixtureLoader_Load_Call

Load is a helper method to define mock.On call

  • ctx context.Context
  • group string
  • fixtureSets []fixtures.FixtureSet

type FixtureLoader_Load_Call

type FixtureLoader_Load_Call struct {
	*mock.Call
}

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

func (*FixtureLoader_Load_Call) Return

func (*FixtureLoader_Load_Call) Run

func (_c *FixtureLoader_Load_Call) Run(run func(ctx context.Context, group string, fixtureSets []fixtures.FixtureSet)) *FixtureLoader_Load_Call

func (*FixtureLoader_Load_Call) RunAndReturn

type FixtureSet

type FixtureSet struct {
	mock.Mock
}

FixtureSet is an autogenerated mock type for the FixtureSet type

func NewFixtureSet

func NewFixtureSet(t interface {
	mock.TestingT
	Cleanup(func())
}) *FixtureSet

NewFixtureSet creates a new instance of FixtureSet. 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 (*FixtureSet) EXPECT

func (_m *FixtureSet) EXPECT() *FixtureSet_Expecter

func (*FixtureSet) Write

func (_m *FixtureSet) Write(ctx context.Context) error

Write provides a mock function with given fields: ctx

type FixtureSet_Expecter

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

func (*FixtureSet_Expecter) Write

func (_e *FixtureSet_Expecter) Write(ctx interface{}) *FixtureSet_Write_Call

Write is a helper method to define mock.On call

  • ctx context.Context

type FixtureSet_Write_Call

type FixtureSet_Write_Call struct {
	*mock.Call
}

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

func (*FixtureSet_Write_Call) Return

func (*FixtureSet_Write_Call) Run

func (*FixtureSet_Write_Call) RunAndReturn

func (_c *FixtureSet_Write_Call) RunAndReturn(run func(context.Context) error) *FixtureSet_Write_Call

type FixtureWriter

type FixtureWriter struct {
	mock.Mock
}

FixtureWriter is an autogenerated mock type for the FixtureWriter type

func NewFixtureWriter

func NewFixtureWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *FixtureWriter

NewFixtureWriter creates a new instance of FixtureWriter. 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 (*FixtureWriter) EXPECT

func (_m *FixtureWriter) EXPECT() *FixtureWriter_Expecter

func (*FixtureWriter) Purge

func (_m *FixtureWriter) Purge(ctx context.Context) error

Purge provides a mock function with given fields: ctx

func (*FixtureWriter) Write

func (_m *FixtureWriter) Write(ctx context.Context, _a1 []interface{}) error

Write provides a mock function with given fields: ctx, _a1

type FixtureWriter_Expecter

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

func (*FixtureWriter_Expecter) Purge

func (_e *FixtureWriter_Expecter) Purge(ctx interface{}) *FixtureWriter_Purge_Call

Purge is a helper method to define mock.On call

  • ctx context.Context

func (*FixtureWriter_Expecter) Write

func (_e *FixtureWriter_Expecter) Write(ctx interface{}, _a1 interface{}) *FixtureWriter_Write_Call

Write is a helper method to define mock.On call

  • ctx context.Context
  • _a1 []interface{}

type FixtureWriter_Purge_Call

type FixtureWriter_Purge_Call struct {
	*mock.Call
}

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

func (*FixtureWriter_Purge_Call) Return

func (*FixtureWriter_Purge_Call) Run

func (*FixtureWriter_Purge_Call) RunAndReturn

type FixtureWriter_Write_Call

type FixtureWriter_Write_Call struct {
	*mock.Call
}

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

func (*FixtureWriter_Write_Call) Return

func (*FixtureWriter_Write_Call) Run

func (_c *FixtureWriter_Write_Call) Run(run func(ctx context.Context, _a1 []interface{})) *FixtureWriter_Write_Call

func (*FixtureWriter_Write_Call) RunAndReturn

func (_c *FixtureWriter_Write_Call) RunAndReturn(run func(context.Context, []interface{}) error) *FixtureWriter_Write_Call

Jump to

Keyboard shortcuts

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