// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( mock "github.com/stretchr/testify/mock" ) // NewMockGCLease creates a new instance of MockGCLease. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewMockGCLease(t interface { mock.TestingT Cleanup(func()) }) *MockGCLease { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockGCLease{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockGCLease is an autogenerated mock type for the GCLease type type MockGCLease struct { mock.Mock } type MockGCLease_Expecter struct { mock *mock.Mock } func (_m *MockGCLease) EXPECT() *MockGCLease_Expecter { return &MockGCLease_Expecter{mock: &_m.Mock} } // Release provides a mock function for the type MockGCLease func (_mock *MockGCLease) Release() { _mock.Called() return } // MockGCLease_Release_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Release' type MockGCLease_Release_Call struct { *mock.Call } // Release is a helper method to define mock.On call func (_e *MockGCLease_Expecter) Release() *MockGCLease_Release_Call { return &MockGCLease_Release_Call{Call: _e.mock.On("Release")} } func (_c *MockGCLease_Release_Call) Run(run func()) *MockGCLease_Release_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockGCLease_Release_Call) Return() *MockGCLease_Release_Call { _c.Call.Return() return _c } func (_c *MockGCLease_Release_Call) RunAndReturn(run func()) *MockGCLease_Release_Call { _c.Run(run) return _c }