mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mockreader

type Mockreader struct {
	mock.Mock
}

Mockreader is an autogenerated mock type for the reader type

func NewMockreader

func NewMockreader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Mockreader

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

func (_m *Mockreader) EXPECT() *Mockreader_Expecter

func (*Mockreader) ListObjects

func (_mock *Mockreader) ListObjects(ctx context.Context, path string) ([]string, error)

ListObjects provides a mock function for the type Mockreader

func (*Mockreader) SetObjectsToStream

func (_mock *Mockreader) SetObjectsToStream(list []string)

SetObjectsToStream provides a mock function for the type Mockreader

type Mockreader_Expecter

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

func (*Mockreader_Expecter) ListObjects

func (_e *Mockreader_Expecter) ListObjects(ctx interface{}, path interface{}) *Mockreader_ListObjects_Call

ListObjects is a helper method to define mock.On call

  • ctx
  • path

func (*Mockreader_Expecter) SetObjectsToStream

func (_e *Mockreader_Expecter) SetObjectsToStream(list interface{}) *Mockreader_SetObjectsToStream_Call

SetObjectsToStream is a helper method to define mock.On call

  • list

type Mockreader_ListObjects_Call

type Mockreader_ListObjects_Call struct {
	*mock.Call
}

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

func (*Mockreader_ListObjects_Call) Return

func (*Mockreader_ListObjects_Call) Run

func (*Mockreader_ListObjects_Call) RunAndReturn

func (_c *Mockreader_ListObjects_Call) RunAndReturn(run func(ctx context.Context, path string) ([]string, error)) *Mockreader_ListObjects_Call

type Mockreader_SetObjectsToStream_Call

type Mockreader_SetObjectsToStream_Call struct {
	*mock.Call
}

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

func (*Mockreader_SetObjectsToStream_Call) Return

func (*Mockreader_SetObjectsToStream_Call) Run

func (*Mockreader_SetObjectsToStream_Call) RunAndReturn

type Mockvalidator

type Mockvalidator struct {
	mock.Mock
}

Mockvalidator is an autogenerated mock type for the validator type

func NewMockvalidator

func NewMockvalidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Mockvalidator

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

func (_m *Mockvalidator) EXPECT() *Mockvalidator_Expecter

func (*Mockvalidator) Run

func (_mock *Mockvalidator) Run(fileName string) error

Run provides a mock function for the type Mockvalidator

type Mockvalidator_Expecter

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

func (*Mockvalidator_Expecter) Run

func (_e *Mockvalidator_Expecter) Run(fileName interface{}) *Mockvalidator_Run_Call

Run is a helper method to define mock.On call

  • fileName

type Mockvalidator_Run_Call

type Mockvalidator_Run_Call struct {
	*mock.Call
}

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

func (*Mockvalidator_Run_Call) Return

func (*Mockvalidator_Run_Call) Run

func (_c *Mockvalidator_Run_Call) Run(run func(fileName string)) *Mockvalidator_Run_Call

func (*Mockvalidator_Run_Call) RunAndReturn

func (_c *Mockvalidator_Run_Call) RunAndReturn(run func(fileName string) error) *Mockvalidator_Run_Call

Jump to

Keyboard shortcuts

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