clock

package
v0.0.0-...-7907c65 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock struct {
	mock.Mock
}

Clock is an autogenerated mock type for the Clock type

func NewClock

func NewClock(t interface {
	mock.TestingT
	Cleanup(func())
}) *Clock

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

func (_m *Clock) EXPECT() *Clock_Expecter

func (*Clock) Now

func (_m *Clock) Now() time.Time

Now provides a mock function with given fields:

func (*Clock) UnixMilli

func (_m *Clock) UnixMilli(msec int64) time.Time

UnixMilli provides a mock function with given fields: msec

type Clock_Expecter

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

func (*Clock_Expecter) Now

func (_e *Clock_Expecter) Now() *Clock_Now_Call

Now is a helper method to define mock.On call

func (*Clock_Expecter) UnixMilli

func (_e *Clock_Expecter) UnixMilli(msec interface{}) *Clock_UnixMilli_Call

UnixMilli is a helper method to define mock.On call

  • msec int64

type Clock_Now_Call

type Clock_Now_Call struct {
	*mock.Call
}

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

func (*Clock_Now_Call) Return

func (_c *Clock_Now_Call) Return(_a0 time.Time) *Clock_Now_Call

func (*Clock_Now_Call) Run

func (_c *Clock_Now_Call) Run(run func()) *Clock_Now_Call

func (*Clock_Now_Call) RunAndReturn

func (_c *Clock_Now_Call) RunAndReturn(run func() time.Time) *Clock_Now_Call

type Clock_UnixMilli_Call

type Clock_UnixMilli_Call struct {
	*mock.Call
}

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

func (*Clock_UnixMilli_Call) Return

func (*Clock_UnixMilli_Call) Run

func (_c *Clock_UnixMilli_Call) Run(run func(msec int64)) *Clock_UnixMilli_Call

func (*Clock_UnixMilli_Call) RunAndReturn

func (_c *Clock_UnixMilli_Call) RunAndReturn(run func(int64) time.Time) *Clock_UnixMilli_Call

Jump to

Keyboard shortcuts

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