// Code generated by mockery v2.53.0. DO NOT EDIT. package token import ( token "codeberg.org/crowci/crow/v3/shared/token" mock "github.com/stretchr/testify/mock" ) // MockSecretFunc is an autogenerated mock type for the SecretFunc type type MockSecretFunc struct { mock.Mock } type MockSecretFunc_Expecter struct { mock *mock.Mock } func (_m *MockSecretFunc) EXPECT() *MockSecretFunc_Expecter { return &MockSecretFunc_Expecter{mock: &_m.Mock} } // Execute provides a mock function with given fields: _a0 func (_m *MockSecretFunc) Execute(_a0 *token.Token) (string, error) { ret := _m.Called(_a0) if len(ret) == 0 { panic("no return value specified for Execute") } var r0 string var r1 error if rf, ok := ret.Get(0).(func(*token.Token) (string, error)); ok { return rf(_a0) } if rf, ok := ret.Get(0).(func(*token.Token) string); ok { r0 = rf(_a0) } else { r0 = ret.Get(0).(string) } if rf, ok := ret.Get(1).(func(*token.Token) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) } return r0, r1 } // MockSecretFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute' type MockSecretFunc_Execute_Call struct { *mock.Call } // Execute is a helper method to define mock.On call // - _a0 *token.Token func (_e *MockSecretFunc_Expecter) Execute(_a0 interface{}) *MockSecretFunc_Execute_Call { return &MockSecretFunc_Execute_Call{Call: _e.mock.On("Execute", _a0)} } func (_c *MockSecretFunc_Execute_Call) Run(run func(_a0 *token.Token)) *MockSecretFunc_Execute_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(*token.Token)) }) return _c } func (_c *MockSecretFunc_Execute_Call) Return(_a0 string, _a1 error) *MockSecretFunc_Execute_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockSecretFunc_Execute_Call) RunAndReturn(run func(*token.Token) (string, error)) *MockSecretFunc_Execute_Call { _c.Call.Return(run) return _c } // NewMockSecretFunc creates a new instance of MockSecretFunc. 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 NewMockSecretFunc(t interface { mock.TestingT Cleanup(func()) }) *MockSecretFunc { mock := &MockSecretFunc{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }