// Code generated by mockery v2.26.0. DO NOT EDIT. package mocks import mock "github.com/stretchr/testify/mock" // OauthService is an autogenerated mock type for the oauthService type type OauthService struct { mock.Mock } type OauthService_Expecter struct { mock *mock.Mock } func (_m *OauthService) EXPECT() *OauthService_Expecter { return &OauthService_Expecter{mock: &_m.Mock} } // GenerateAuthURL provides a mock function with given fields: func (_m *OauthService) GenerateAuthURL() string { ret := _m.Called() var r0 string if rf, ok := ret.Get(0).(func() string); ok { r0 = rf() } else { r0 = ret.Get(0).(string) } return r0 } // OauthService_GenerateAuthURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateAuthURL' type OauthService_GenerateAuthURL_Call struct { *mock.Call } // GenerateAuthURL is a helper method to define mock.On call func (_e *OauthService_Expecter) GenerateAuthURL() *OauthService_GenerateAuthURL_Call { return &OauthService_GenerateAuthURL_Call{Call: _e.mock.On("GenerateAuthURL")} } func (_c *OauthService_GenerateAuthURL_Call) Run(run func()) *OauthService_GenerateAuthURL_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *OauthService_GenerateAuthURL_Call) Return(_a0 string) *OauthService_GenerateAuthURL_Call { _c.Call.Return(_a0) return _c } func (_c *OauthService_GenerateAuthURL_Call) RunAndReturn(run func() string) *OauthService_GenerateAuthURL_Call { _c.Call.Return(run) return _c } // GenerateLinkURL provides a mock function with given fields: accessToken func (_m *OauthService) GenerateLinkURL(accessToken string) string { ret := _m.Called(accessToken) var r0 string if rf, ok := ret.Get(0).(func(string) string); ok { r0 = rf(accessToken) } else { r0 = ret.Get(0).(string) } return r0 } // OauthService_GenerateLinkURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateLinkURL' type OauthService_GenerateLinkURL_Call struct { *mock.Call } // GenerateLinkURL is a helper method to define mock.On call // - accessToken string func (_e *OauthService_Expecter) GenerateLinkURL(accessToken interface{}) *OauthService_GenerateLinkURL_Call { return &OauthService_GenerateLinkURL_Call{Call: _e.mock.On("GenerateLinkURL", accessToken)} } func (_c *OauthService_GenerateLinkURL_Call) Run(run func(accessToken string)) *OauthService_GenerateLinkURL_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } func (_c *OauthService_GenerateLinkURL_Call) Return(_a0 string) *OauthService_GenerateLinkURL_Call { _c.Call.Return(_a0) return _c } func (_c *OauthService_GenerateLinkURL_Call) RunAndReturn(run func(string) string) *OauthService_GenerateLinkURL_Call { _c.Call.Return(run) return _c } // ValidateState provides a mock function with given fields: state func (_m *OauthService) ValidateState(state string) bool { ret := _m.Called(state) var r0 bool if rf, ok := ret.Get(0).(func(string) bool); ok { r0 = rf(state) } else { r0 = ret.Get(0).(bool) } return r0 } // OauthService_ValidateState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateState' type OauthService_ValidateState_Call struct { *mock.Call } // ValidateState is a helper method to define mock.On call // - state string func (_e *OauthService_Expecter) ValidateState(state interface{}) *OauthService_ValidateState_Call { return &OauthService_ValidateState_Call{Call: _e.mock.On("ValidateState", state)} } func (_c *OauthService_ValidateState_Call) Run(run func(state string)) *OauthService_ValidateState_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(string)) }) return _c } func (_c *OauthService_ValidateState_Call) Return(_a0 bool) *OauthService_ValidateState_Call { _c.Call.Return(_a0) return _c } func (_c *OauthService_ValidateState_Call) RunAndReturn(run func(string) bool) *OauthService_ValidateState_Call { _c.Call.Return(run) return _c } type mockConstructorTestingTNewOauthService interface { mock.TestingT Cleanup(func()) } // NewOauthService creates a new instance of OauthService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. func NewOauthService(t mockConstructorTestingTNewOauthService) *OauthService { mock := &OauthService{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }