mock

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: clock.go

Generated by this command:

mockgen -destination=../mock/clock.go -package mock -typed -source clock.go

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClockParseCall

type ClockParseCall struct {
	*gomock.Call
}

ClockParseCall wrap *gomock.Call

func (*ClockParseCall) Do

Do rewrite *gomock.Call.Do

func (*ClockParseCall) DoAndReturn

func (c *ClockParseCall) DoAndReturn(f func(string, string) (time.Time, error)) *ClockParseCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ClockParseCall) Return

func (c *ClockParseCall) Return(arg0 time.Time, arg1 error) *ClockParseCall

Return rewrite *gomock.Call.Return

type ClockSinceCall

type ClockSinceCall struct {
	*gomock.Call
}

ClockSinceCall wrap *gomock.Call

func (*ClockSinceCall) Do

Do rewrite *gomock.Call.Do

func (*ClockSinceCall) DoAndReturn

func (c *ClockSinceCall) DoAndReturn(f func(time.Time) time.Duration) *ClockSinceCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ClockSinceCall) Return

func (c *ClockSinceCall) Return(arg0 time.Duration) *ClockSinceCall

Return rewrite *gomock.Call.Return

type MockClock

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

MockClock is a mock of Clock interface.

func NewMockClock

func NewMockClock(ctrl *gomock.Controller) *MockClock

NewMockClock creates a new mock instance.

func (*MockClock) EXPECT

func (m *MockClock) EXPECT() *MockClockMockRecorder

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

func (*MockClock) Parse

func (m *MockClock) Parse(layout, value string) (time.Time, error)

Parse mocks base method.

func (*MockClock) Since

func (m *MockClock) Since(t time.Time) time.Duration

Since mocks base method.

type MockClockMockRecorder

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

MockClockMockRecorder is the mock recorder for MockClock.

func (*MockClockMockRecorder) Parse

func (mr *MockClockMockRecorder) Parse(layout, value any) *ClockParseCall

Parse indicates an expected call of Parse.

func (*MockClockMockRecorder) Since

Since indicates an expected call of Since.

Jump to

Keyboard shortcuts

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