extmocks

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnyContext = mock.MatchedBy(func(c context.Context) bool {

	return true
})

AnyContext is a matcher for testify/mock that matches anything implementing context.Context

Functions

This section is empty.

Types

type MockDynamoDBQueryClient

type MockDynamoDBQueryClient struct {
	mock.Mock
}

MockDynamoDBQueryClient is an autogenerated mock type for the QueryAPIClient type

func NewMockDynamoDBQueryClient

func NewMockDynamoDBQueryClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDynamoDBQueryClient

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

func (*MockDynamoDBQueryClient) Query

func (_mock *MockDynamoDBQueryClient) Query(context1 context.Context, queryInput *dynamodb.QueryInput, fns ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)

Query provides a mock function for the type MockDynamoDBQueryClient

type MockDynamoDBQueryClient_Expecter

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

func (*MockDynamoDBQueryClient_Expecter) Query

func (_e *MockDynamoDBQueryClient_Expecter) Query(context1 interface{}, queryInput interface{}, fns ...interface{}) *MockDynamoDBQueryClient_Query_Call

Query is a helper method to define mock.On call

  • context1 context.Context
  • queryInput *dynamodb.QueryInput
  • fns ...func(*dynamodb.Options)

type MockDynamoDBQueryClient_Query_Call

type MockDynamoDBQueryClient_Query_Call struct {
	*mock.Call
}

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

func (*MockDynamoDBQueryClient_Query_Call) Return

func (*MockDynamoDBQueryClient_Query_Call) Run

func (*MockDynamoDBQueryClient_Query_Call) RunAndReturn

type MockEventLogger

type MockEventLogger struct {
	mock.Mock
}

MockEventLogger is an autogenerated mock type for the EventLogger type

func NewMockEventLogger

func NewMockEventLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEventLogger

NewMockEventLogger creates a new instance of MockEventLogger. 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 (*MockEventLogger) Debug

func (_mock *MockEventLogger) Debug(args ...interface{})

Debug provides a mock function for the type MockEventLogger

func (*MockEventLogger) Debugf

func (_mock *MockEventLogger) Debugf(format string, args ...interface{})

Debugf provides a mock function for the type MockEventLogger

func (*MockEventLogger) EXPECT

func (*MockEventLogger) Error

func (_mock *MockEventLogger) Error(args ...interface{})

Error provides a mock function for the type MockEventLogger

func (*MockEventLogger) Errorf

func (_mock *MockEventLogger) Errorf(format string, args ...interface{})

Errorf provides a mock function for the type MockEventLogger

func (*MockEventLogger) Fatal

func (_mock *MockEventLogger) Fatal(args ...interface{})

Fatal provides a mock function for the type MockEventLogger

func (*MockEventLogger) Fatalf

func (_mock *MockEventLogger) Fatalf(format string, args ...interface{})

Fatalf provides a mock function for the type MockEventLogger

func (*MockEventLogger) Info

func (_mock *MockEventLogger) Info(args ...interface{})

Info provides a mock function for the type MockEventLogger

func (*MockEventLogger) Infof

func (_mock *MockEventLogger) Infof(format string, args ...interface{})

Infof provides a mock function for the type MockEventLogger

func (*MockEventLogger) Panic

func (_mock *MockEventLogger) Panic(args ...interface{})

Panic provides a mock function for the type MockEventLogger

func (*MockEventLogger) Panicf

func (_mock *MockEventLogger) Panicf(format string, args ...interface{})

Panicf provides a mock function for the type MockEventLogger

func (*MockEventLogger) Warn

func (_mock *MockEventLogger) Warn(args ...interface{})

Warn provides a mock function for the type MockEventLogger

func (*MockEventLogger) Warnf

func (_mock *MockEventLogger) Warnf(format string, args ...interface{})

Warnf provides a mock function for the type MockEventLogger

type MockEventLogger_Debug_Call

type MockEventLogger_Debug_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Debug_Call) Return

func (*MockEventLogger_Debug_Call) Run

func (_c *MockEventLogger_Debug_Call) Run(run func(args ...interface{})) *MockEventLogger_Debug_Call

func (*MockEventLogger_Debug_Call) RunAndReturn

func (_c *MockEventLogger_Debug_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Debug_Call

type MockEventLogger_Debugf_Call

type MockEventLogger_Debugf_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Debugf_Call) Return

func (*MockEventLogger_Debugf_Call) Run

func (_c *MockEventLogger_Debugf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Debugf_Call

func (*MockEventLogger_Debugf_Call) RunAndReturn

func (_c *MockEventLogger_Debugf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Debugf_Call

type MockEventLogger_Error_Call

type MockEventLogger_Error_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Error_Call) Return

func (*MockEventLogger_Error_Call) Run

func (_c *MockEventLogger_Error_Call) Run(run func(args ...interface{})) *MockEventLogger_Error_Call

func (*MockEventLogger_Error_Call) RunAndReturn

func (_c *MockEventLogger_Error_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Error_Call

type MockEventLogger_Errorf_Call

type MockEventLogger_Errorf_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Errorf_Call) Return

func (*MockEventLogger_Errorf_Call) Run

func (_c *MockEventLogger_Errorf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Errorf_Call

func (*MockEventLogger_Errorf_Call) RunAndReturn

func (_c *MockEventLogger_Errorf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Errorf_Call

type MockEventLogger_Expecter

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

func (*MockEventLogger_Expecter) Debug

func (_e *MockEventLogger_Expecter) Debug(args ...interface{}) *MockEventLogger_Debug_Call

Debug is a helper method to define mock.On call

  • args ...interface{}

func (*MockEventLogger_Expecter) Debugf

func (_e *MockEventLogger_Expecter) Debugf(format interface{}, args ...interface{}) *MockEventLogger_Debugf_Call

Debugf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*MockEventLogger_Expecter) Error

func (_e *MockEventLogger_Expecter) Error(args ...interface{}) *MockEventLogger_Error_Call

Error is a helper method to define mock.On call

  • args ...interface{}

func (*MockEventLogger_Expecter) Errorf

func (_e *MockEventLogger_Expecter) Errorf(format interface{}, args ...interface{}) *MockEventLogger_Errorf_Call

Errorf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*MockEventLogger_Expecter) Fatal

func (_e *MockEventLogger_Expecter) Fatal(args ...interface{}) *MockEventLogger_Fatal_Call

Fatal is a helper method to define mock.On call

  • args ...interface{}

func (*MockEventLogger_Expecter) Fatalf

func (_e *MockEventLogger_Expecter) Fatalf(format interface{}, args ...interface{}) *MockEventLogger_Fatalf_Call

Fatalf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*MockEventLogger_Expecter) Info

func (_e *MockEventLogger_Expecter) Info(args ...interface{}) *MockEventLogger_Info_Call

Info is a helper method to define mock.On call

  • args ...interface{}

func (*MockEventLogger_Expecter) Infof

func (_e *MockEventLogger_Expecter) Infof(format interface{}, args ...interface{}) *MockEventLogger_Infof_Call

Infof is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*MockEventLogger_Expecter) Panic

func (_e *MockEventLogger_Expecter) Panic(args ...interface{}) *MockEventLogger_Panic_Call

Panic is a helper method to define mock.On call

  • args ...interface{}

func (*MockEventLogger_Expecter) Panicf

func (_e *MockEventLogger_Expecter) Panicf(format interface{}, args ...interface{}) *MockEventLogger_Panicf_Call

Panicf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*MockEventLogger_Expecter) Warn

func (_e *MockEventLogger_Expecter) Warn(args ...interface{}) *MockEventLogger_Warn_Call

Warn is a helper method to define mock.On call

  • args ...interface{}

func (*MockEventLogger_Expecter) Warnf

func (_e *MockEventLogger_Expecter) Warnf(format interface{}, args ...interface{}) *MockEventLogger_Warnf_Call

Warnf is a helper method to define mock.On call

  • format string
  • args ...interface{}

type MockEventLogger_Fatal_Call

type MockEventLogger_Fatal_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Fatal_Call) Return

func (*MockEventLogger_Fatal_Call) Run

func (_c *MockEventLogger_Fatal_Call) Run(run func(args ...interface{})) *MockEventLogger_Fatal_Call

func (*MockEventLogger_Fatal_Call) RunAndReturn

func (_c *MockEventLogger_Fatal_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Fatal_Call

type MockEventLogger_Fatalf_Call

type MockEventLogger_Fatalf_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Fatalf_Call) Return

func (*MockEventLogger_Fatalf_Call) Run

func (_c *MockEventLogger_Fatalf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Fatalf_Call

func (*MockEventLogger_Fatalf_Call) RunAndReturn

func (_c *MockEventLogger_Fatalf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Fatalf_Call

type MockEventLogger_Info_Call

type MockEventLogger_Info_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Info_Call) Return

func (*MockEventLogger_Info_Call) Run

func (_c *MockEventLogger_Info_Call) Run(run func(args ...interface{})) *MockEventLogger_Info_Call

func (*MockEventLogger_Info_Call) RunAndReturn

func (_c *MockEventLogger_Info_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Info_Call

type MockEventLogger_Infof_Call

type MockEventLogger_Infof_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Infof_Call) Return

func (*MockEventLogger_Infof_Call) Run

func (_c *MockEventLogger_Infof_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Infof_Call

func (*MockEventLogger_Infof_Call) RunAndReturn

func (_c *MockEventLogger_Infof_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Infof_Call

type MockEventLogger_Panic_Call

type MockEventLogger_Panic_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Panic_Call) Return

func (*MockEventLogger_Panic_Call) Run

func (_c *MockEventLogger_Panic_Call) Run(run func(args ...interface{})) *MockEventLogger_Panic_Call

func (*MockEventLogger_Panic_Call) RunAndReturn

func (_c *MockEventLogger_Panic_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Panic_Call

type MockEventLogger_Panicf_Call

type MockEventLogger_Panicf_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Panicf_Call) Return

func (*MockEventLogger_Panicf_Call) Run

func (_c *MockEventLogger_Panicf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Panicf_Call

func (*MockEventLogger_Panicf_Call) RunAndReturn

func (_c *MockEventLogger_Panicf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Panicf_Call

type MockEventLogger_Warn_Call

type MockEventLogger_Warn_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Warn_Call) Return

func (*MockEventLogger_Warn_Call) Run

func (_c *MockEventLogger_Warn_Call) Run(run func(args ...interface{})) *MockEventLogger_Warn_Call

func (*MockEventLogger_Warn_Call) RunAndReturn

func (_c *MockEventLogger_Warn_Call) RunAndReturn(run func(args ...interface{})) *MockEventLogger_Warn_Call

type MockEventLogger_Warnf_Call

type MockEventLogger_Warnf_Call struct {
	*mock.Call
}

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

func (*MockEventLogger_Warnf_Call) Return

func (*MockEventLogger_Warnf_Call) Run

func (_c *MockEventLogger_Warnf_Call) Run(run func(format string, args ...interface{})) *MockEventLogger_Warnf_Call

func (*MockEventLogger_Warnf_Call) RunAndReturn

func (_c *MockEventLogger_Warnf_Call) RunAndReturn(run func(format string, args ...interface{})) *MockEventLogger_Warnf_Call

type MockIpniFinder

type MockIpniFinder struct {
	mock.Mock
}

MockIpniFinder is an autogenerated mock type for the Finder type

func NewMockIpniFinder

func NewMockIpniFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIpniFinder

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

func (*MockIpniFinder) Find

func (_mock *MockIpniFinder) Find(context1 context.Context, multihash1 multihash.Multihash) (*model.FindResponse, error)

Find provides a mock function for the type MockIpniFinder

type MockIpniFinder_Expecter

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

func (*MockIpniFinder_Expecter) Find

func (_e *MockIpniFinder_Expecter) Find(context1 interface{}, multihash1 interface{}) *MockIpniFinder_Find_Call

Find is a helper method to define mock.On call

  • context1 context.Context
  • multihash1 multihash.Multihash

type MockIpniFinder_Find_Call

type MockIpniFinder_Find_Call struct {
	*mock.Call
}

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

func (*MockIpniFinder_Find_Call) Return

func (*MockIpniFinder_Find_Call) Run

func (_c *MockIpniFinder_Find_Call) Run(run func(context1 context.Context, multihash1 multihash.Multihash)) *MockIpniFinder_Find_Call

func (*MockIpniFinder_Find_Call) RunAndReturn

func (_c *MockIpniFinder_Find_Call) RunAndReturn(run func(context1 context.Context, multihash1 multihash.Multihash) (*model.FindResponse, error)) *MockIpniFinder_Find_Call

type MockIpniPublisher

type MockIpniPublisher struct {
	mock.Mock
}

MockIpniPublisher is an autogenerated mock type for the AsyncPublisher type

func NewMockIpniPublisher

func NewMockIpniPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIpniPublisher

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

func (*MockIpniPublisher) Publish

func (_mock *MockIpniPublisher) Publish(ctx context.Context, provider peer.AddrInfo, contextID string, digests iter.Seq[multihash.Multihash], meta metadata.Metadata) error

Publish provides a mock function for the type MockIpniPublisher

type MockIpniPublisher_Expecter

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

func (*MockIpniPublisher_Expecter) Publish

func (_e *MockIpniPublisher_Expecter) Publish(ctx interface{}, provider interface{}, contextID interface{}, digests interface{}, meta interface{}) *MockIpniPublisher_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • provider peer.AddrInfo
  • contextID string
  • digests iter.Seq[multihash.Multihash]
  • meta metadata.Metadata

type MockIpniPublisher_Publish_Call

type MockIpniPublisher_Publish_Call struct {
	*mock.Call
}

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

func (*MockIpniPublisher_Publish_Call) Return

func (*MockIpniPublisher_Publish_Call) Run

func (*MockIpniPublisher_Publish_Call) RunAndReturn

func (_c *MockIpniPublisher_Publish_Call) RunAndReturn(run func(ctx context.Context, provider peer.AddrInfo, contextID string, digests iter.Seq[multihash.Multihash], meta metadata.Metadata) error) *MockIpniPublisher_Publish_Call

Jump to

Keyboard shortcuts

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