mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockScannable

type MockScannable struct {
	mock.Mock
}

MockScannable is an autogenerated mock type for the Scannable type

func NewMockScannable

func NewMockScannable(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockScannable

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

func (_m *MockScannable) EXPECT() *MockScannable_Expecter

func (*MockScannable) Scan

func (_mock *MockScannable) Scan(dest ...any) error

Scan provides a mock function for the type MockScannable

type MockScannable_Expecter

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

func (*MockScannable_Expecter) Scan

Scan is a helper method to define mock.On call

  • dest ...any

type MockScannable_Scan_Call

type MockScannable_Scan_Call struct {
	*mock.Call
}

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

func (*MockScannable_Scan_Call) Return

func (*MockScannable_Scan_Call) Run

func (_c *MockScannable_Scan_Call) Run(run func(dest ...any)) *MockScannable_Scan_Call

func (*MockScannable_Scan_Call) RunAndReturn

func (_c *MockScannable_Scan_Call) RunAndReturn(run func(dest ...any) error) *MockScannable_Scan_Call

Jump to

Keyboard shortcuts

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