ntime

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ntime is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimer = Time{}

DefaultTimer is a Timer wrapping the `time` package

Functions

This section is empty.

Types

type MockTimer

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

MockTimer is a mock of Timer interface

func NewMockTimer

func NewMockTimer(ctrl *gomock.Controller) *MockTimer

NewMockTimer creates a new mock instance

func (*MockTimer) EXPECT

func (m *MockTimer) EXPECT() *MockTimerMockRecorder

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

func (*MockTimer) Now

func (m *MockTimer) Now() time.Time

Now mocks base method

type MockTimerMockRecorder

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

MockTimerMockRecorder is the mock recorder for MockTimer

func (*MockTimerMockRecorder) Now

func (mr *MockTimerMockRecorder) Now() *gomock.Call

Now indicates an expected call of Now

type Time

type Time struct{}

Time is an implementation of Timer wrapping `time` standard package

func (Time) Now

func (Time) Now() time.Time

Now returns time.Now()

type Timer

type Timer interface {
	Now() time.Time
}

Timer is an interface that provides wrappers to get times It is useful to mock time.Now()

Jump to

Keyboard shortcuts

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