Back to

package time

Latest Go to latest
Published: May 27, 2020 | Licenses: Apache-2.0, BSD-2-Clause, MIT, MPL-2.0 | Module:


Package time is a generated GoMock package.


type MockNow

type MockNow struct {
	// contains filtered or unexported fields

MockNow is a mock of Now interface

func NewMockNow

func NewMockNow(ctrl *gomock.Controller) *MockNow

NewMockNow creates a new mock instance

func (*MockNow) Do

func (m *MockNow) Do() time.Time

Do mocks base method

func (*MockNow) EXPECT

func (m *MockNow) EXPECT() *MockNowMockRecorder

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

type MockNowMockRecorder

type MockNowMockRecorder struct {
	// contains filtered or unexported fields

MockNowMockRecorder is the mock recorder for MockNow

func (*MockNowMockRecorder) Do

func (mr *MockNowMockRecorder) Do() *gomock.Call

Do indicates an expected call of Do

type Now

type Now interface {
	Do() time.Time

Now allows mocking time.Now.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier