mirror of
https://github.com/int128/kubelogin.git
synced 2026-05-20 14:52:49 +00:00
74 lines
1.7 KiB
Go
74 lines
1.7 KiB
Go
// Code generated by mockery v2.13.1. DO NOT EDIT.
|
|
|
|
package clock
|
|
|
|
import (
|
|
time "time"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// MockInterface is an autogenerated mock type for the Interface type
|
|
type MockInterface struct {
|
|
mock.Mock
|
|
}
|
|
|
|
type MockInterface_Expecter struct {
|
|
mock *mock.Mock
|
|
}
|
|
|
|
func (_m *MockInterface) EXPECT() *MockInterface_Expecter {
|
|
return &MockInterface_Expecter{mock: &_m.Mock}
|
|
}
|
|
|
|
// Now provides a mock function with given fields:
|
|
func (_m *MockInterface) Now() time.Time {
|
|
ret := _m.Called()
|
|
|
|
var r0 time.Time
|
|
if rf, ok := ret.Get(0).(func() time.Time); ok {
|
|
r0 = rf()
|
|
} else {
|
|
r0 = ret.Get(0).(time.Time)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// MockInterface_Now_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Now'
|
|
type MockInterface_Now_Call struct {
|
|
*mock.Call
|
|
}
|
|
|
|
// Now is a helper method to define mock.On call
|
|
func (_e *MockInterface_Expecter) Now() *MockInterface_Now_Call {
|
|
return &MockInterface_Now_Call{Call: _e.mock.On("Now")}
|
|
}
|
|
|
|
func (_c *MockInterface_Now_Call) Run(run func()) *MockInterface_Now_Call {
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
run()
|
|
})
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockInterface_Now_Call) Return(_a0 time.Time) *MockInterface_Now_Call {
|
|
_c.Call.Return(_a0)
|
|
return _c
|
|
}
|
|
|
|
type mockConstructorTestingTNewMockInterface interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}
|
|
|
|
// NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
|
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface {
|
|
mock := &MockInterface{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|