Documentation
¶
Index ¶
- type MockSecretService
- func (_mock *MockSecretService) CompareSecret(plainSecret string, hashedSecret string) bool
- func (_m *MockSecretService) EXPECT() *MockSecretService_Expecter
- func (_mock *MockSecretService) GenerateSecret() (string, string, error)
- func (_mock *MockSecretService) HashSecret(plainSecret string) (string, error)
- type MockSecretService_CompareSecret_Call
- func (_c *MockSecretService_CompareSecret_Call) Return(b bool) *MockSecretService_CompareSecret_Call
- func (_c *MockSecretService_CompareSecret_Call) Run(run func(plainSecret string, hashedSecret string)) *MockSecretService_CompareSecret_Call
- func (_c *MockSecretService_CompareSecret_Call) RunAndReturn(run func(plainSecret string, hashedSecret string) bool) *MockSecretService_CompareSecret_Call
- type MockSecretService_Expecter
- func (_e *MockSecretService_Expecter) CompareSecret(plainSecret interface{}, hashedSecret interface{}) *MockSecretService_CompareSecret_Call
- func (_e *MockSecretService_Expecter) GenerateSecret() *MockSecretService_GenerateSecret_Call
- func (_e *MockSecretService_Expecter) HashSecret(plainSecret interface{}) *MockSecretService_HashSecret_Call
- type MockSecretService_GenerateSecret_Call
- func (_c *MockSecretService_GenerateSecret_Call) Return(plainSecret string, hashedSecret string, error1 error) *MockSecretService_GenerateSecret_Call
- func (_c *MockSecretService_GenerateSecret_Call) Run(run func()) *MockSecretService_GenerateSecret_Call
- func (_c *MockSecretService_GenerateSecret_Call) RunAndReturn(run func() (string, string, error)) *MockSecretService_GenerateSecret_Call
- type MockSecretService_HashSecret_Call
- func (_c *MockSecretService_HashSecret_Call) Return(hashedSecret string, error1 error) *MockSecretService_HashSecret_Call
- func (_c *MockSecretService_HashSecret_Call) Run(run func(plainSecret string)) *MockSecretService_HashSecret_Call
- func (_c *MockSecretService_HashSecret_Call) RunAndReturn(run func(plainSecret string) (string, error)) *MockSecretService_HashSecret_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSecretService ¶
MockSecretService is an autogenerated mock type for the SecretService type
func NewMockSecretService ¶
func NewMockSecretService(t interface {
mock.TestingT
Cleanup(func())
}) *MockSecretService
NewMockSecretService creates a new instance of MockSecretService. 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 (*MockSecretService) CompareSecret ¶
func (_mock *MockSecretService) CompareSecret(plainSecret string, hashedSecret string) bool
CompareSecret provides a mock function for the type MockSecretService
func (*MockSecretService) EXPECT ¶
func (_m *MockSecretService) EXPECT() *MockSecretService_Expecter
func (*MockSecretService) GenerateSecret ¶
func (_mock *MockSecretService) GenerateSecret() (string, string, error)
GenerateSecret provides a mock function for the type MockSecretService
func (*MockSecretService) HashSecret ¶
func (_mock *MockSecretService) HashSecret(plainSecret string) (string, error)
HashSecret provides a mock function for the type MockSecretService
type MockSecretService_CompareSecret_Call ¶
MockSecretService_CompareSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompareSecret'
func (*MockSecretService_CompareSecret_Call) Return ¶
func (_c *MockSecretService_CompareSecret_Call) Return(b bool) *MockSecretService_CompareSecret_Call
func (*MockSecretService_CompareSecret_Call) Run ¶
func (_c *MockSecretService_CompareSecret_Call) Run(run func(plainSecret string, hashedSecret string)) *MockSecretService_CompareSecret_Call
func (*MockSecretService_CompareSecret_Call) RunAndReturn ¶
func (_c *MockSecretService_CompareSecret_Call) RunAndReturn(run func(plainSecret string, hashedSecret string) bool) *MockSecretService_CompareSecret_Call
type MockSecretService_Expecter ¶
type MockSecretService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSecretService_Expecter) CompareSecret ¶
func (_e *MockSecretService_Expecter) CompareSecret(plainSecret interface{}, hashedSecret interface{}) *MockSecretService_CompareSecret_Call
CompareSecret is a helper method to define mock.On call
- plainSecret string
- hashedSecret string
func (*MockSecretService_Expecter) GenerateSecret ¶
func (_e *MockSecretService_Expecter) GenerateSecret() *MockSecretService_GenerateSecret_Call
GenerateSecret is a helper method to define mock.On call
func (*MockSecretService_Expecter) HashSecret ¶
func (_e *MockSecretService_Expecter) HashSecret(plainSecret interface{}) *MockSecretService_HashSecret_Call
HashSecret is a helper method to define mock.On call
- plainSecret string
type MockSecretService_GenerateSecret_Call ¶
MockSecretService_GenerateSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateSecret'
func (*MockSecretService_GenerateSecret_Call) Return ¶
func (_c *MockSecretService_GenerateSecret_Call) Return(plainSecret string, hashedSecret string, error1 error) *MockSecretService_GenerateSecret_Call
func (*MockSecretService_GenerateSecret_Call) Run ¶
func (_c *MockSecretService_GenerateSecret_Call) Run(run func()) *MockSecretService_GenerateSecret_Call
func (*MockSecretService_GenerateSecret_Call) RunAndReturn ¶
func (_c *MockSecretService_GenerateSecret_Call) RunAndReturn(run func() (string, string, error)) *MockSecretService_GenerateSecret_Call
type MockSecretService_HashSecret_Call ¶
MockSecretService_HashSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HashSecret'
func (*MockSecretService_HashSecret_Call) Return ¶
func (_c *MockSecretService_HashSecret_Call) Return(hashedSecret string, error1 error) *MockSecretService_HashSecret_Call
func (*MockSecretService_HashSecret_Call) Run ¶
func (_c *MockSecretService_HashSecret_Call) Run(run func(plainSecret string)) *MockSecretService_HashSecret_Call
func (*MockSecretService_HashSecret_Call) RunAndReturn ¶
func (_c *MockSecretService_HashSecret_Call) RunAndReturn(run func(plainSecret string) (string, error)) *MockSecretService_HashSecret_Call