testing

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 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 MockCron

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

MockCron is a mock of Cron interface.

func NewMockCron

func NewMockCron(ctrl *gomock.Controller) *MockCron

NewMockCron creates a new mock instance.

func (*MockCron) AddFunc

func (m *MockCron) AddFunc(spec string, cmd func()) error

AddFunc mocks base method.

func (*MockCron) EXPECT

func (m *MockCron) EXPECT() *MockCronMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCron) Start

func (m *MockCron) Start()

Start mocks base method.

func (*MockCron) Stop

func (m *MockCron) Stop()

Stop mocks base method.

func (*MockCron) Tick

func (m *MockCron) Tick()

type MockCronMockRecorder

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

MockCronMockRecorder is the mock recorder for MockCron.

func (*MockCronMockRecorder) AddFunc

func (mr *MockCronMockRecorder) AddFunc(spec, cmd any) *gomock.Call

AddFunc indicates an expected call of AddFunc.

func (*MockCronMockRecorder) Start

func (mr *MockCronMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockCronMockRecorder) Stop

func (mr *MockCronMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

Jump to

Keyboard shortcuts

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