mocks

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 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 WAL

type WAL struct {
	mock.Mock
}

WAL is an autogenerated mock type for the WAL type

func NewWAL

func NewWAL(t interface {
	mock.TestingT
	Cleanup(func())
}) *WAL

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

func (_m *WAL) EXPECT() *WAL_Expecter

func (*WAL) Log

func (_mock *WAL) Log(s string, anyMoqParam any) (wal.Commit, error)

Log provides a mock function for the type WAL

func (*WAL) Recover

func (_mock *WAL) Recover(context1 context.Context)

Recover provides a mock function for the type WAL

func (*WAL) Register

func (_mock *WAL) Register(eventHandler wal.EventHandler)

Register provides a mock function for the type WAL

func (*WAL) Takeover added in v0.1.1

func (_mock *WAL) Takeover(ctx context.Context, live []string)

Takeover provides a mock function for the type WAL

type WAL_Expecter

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

func (*WAL_Expecter) Log

func (_e *WAL_Expecter) Log(s any, anyMoqParam any) *WAL_Log_Call

Log is a helper method to define mock.On call

  • s string
  • anyMoqParam any

func (*WAL_Expecter) Recover

func (_e *WAL_Expecter) Recover(context1 any) *WAL_Recover_Call

Recover is a helper method to define mock.On call

  • context1 context.Context

func (*WAL_Expecter) Register

func (_e *WAL_Expecter) Register(eventHandler any) *WAL_Register_Call

Register is a helper method to define mock.On call

  • eventHandler wal.EventHandler

func (*WAL_Expecter) Takeover added in v0.1.1

func (_e *WAL_Expecter) Takeover(ctx any, live any) *WAL_Takeover_Call

Takeover is a helper method to define mock.On call

  • ctx context.Context
  • live []string

type WAL_Log_Call

type WAL_Log_Call struct {
	*mock.Call
}

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

func (*WAL_Log_Call) Return

func (_c *WAL_Log_Call) Return(commit wal.Commit, err error) *WAL_Log_Call

func (*WAL_Log_Call) Run

func (_c *WAL_Log_Call) Run(run func(s string, anyMoqParam any)) *WAL_Log_Call

func (*WAL_Log_Call) RunAndReturn

func (_c *WAL_Log_Call) RunAndReturn(run func(s string, anyMoqParam any) (wal.Commit, error)) *WAL_Log_Call

type WAL_Recover_Call

type WAL_Recover_Call struct {
	*mock.Call
}

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

func (*WAL_Recover_Call) Return

func (_c *WAL_Recover_Call) Return() *WAL_Recover_Call

func (*WAL_Recover_Call) Run

func (_c *WAL_Recover_Call) Run(run func(context1 context.Context)) *WAL_Recover_Call

func (*WAL_Recover_Call) RunAndReturn

func (_c *WAL_Recover_Call) RunAndReturn(run func(context1 context.Context)) *WAL_Recover_Call

type WAL_Register_Call

type WAL_Register_Call struct {
	*mock.Call
}

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

func (*WAL_Register_Call) Return

func (_c *WAL_Register_Call) Return() *WAL_Register_Call

func (*WAL_Register_Call) Run

func (_c *WAL_Register_Call) Run(run func(eventHandler wal.EventHandler)) *WAL_Register_Call

func (*WAL_Register_Call) RunAndReturn

func (_c *WAL_Register_Call) RunAndReturn(run func(eventHandler wal.EventHandler)) *WAL_Register_Call

type WAL_Takeover_Call added in v0.1.1

type WAL_Takeover_Call struct {
	*mock.Call
}

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

func (*WAL_Takeover_Call) Return added in v0.1.1

func (_c *WAL_Takeover_Call) Return() *WAL_Takeover_Call

func (*WAL_Takeover_Call) Run added in v0.1.1

func (_c *WAL_Takeover_Call) Run(run func(ctx context.Context, live []string)) *WAL_Takeover_Call

func (*WAL_Takeover_Call) RunAndReturn added in v0.1.1

func (_c *WAL_Takeover_Call) RunAndReturn(run func(ctx context.Context, live []string)) *WAL_Takeover_Call

Jump to

Keyboard shortcuts

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