48 行
1.1 KiB
Go
48 行
1.1 KiB
Go
![]() |
package pub
|
||
|
|
||
|
// Code generated by MockGen. DO NOT EDIT.
|
||
|
// Source: clock.go
|
||
|
|
||
|
import (
|
||
|
gomock "github.com/golang/mock/gomock"
|
||
|
reflect "reflect"
|
||
|
time "time"
|
||
|
)
|
||
|
|
||
|
// MockClock is a mock of Clock interface
|
||
|
type MockClock struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MockClockMockRecorder
|
||
|
}
|
||
|
|
||
|
// MockClockMockRecorder is the mock recorder for MockClock
|
||
|
type MockClockMockRecorder struct {
|
||
|
mock *MockClock
|
||
|
}
|
||
|
|
||
|
// NewMockClock creates a new mock instance
|
||
|
func NewMockClock(ctrl *gomock.Controller) *MockClock {
|
||
|
mock := &MockClock{ctrl: ctrl}
|
||
|
mock.recorder = &MockClockMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use
|
||
|
func (m *MockClock) EXPECT() *MockClockMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Now mocks base method
|
||
|
func (m *MockClock) Now() time.Time {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Now")
|
||
|
ret0, _ := ret[0].(time.Time)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// Now indicates an expected call of Now
|
||
|
func (mr *MockClockMockRecorder) Now() *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Now", reflect.TypeOf((*MockClock)(nil).Now))
|
||
|
}
|