Documentation ¶
Index ¶
- type MockOry
- type MockOry_Authenticate_Call
- func (_c *MockOry_Authenticate_Call) Return(_a0 *client.Session, _a1 error) *MockOry_Authenticate_Call
- func (_c *MockOry_Authenticate_Call) Run(run func(ctx context.Context, cookie string, allowAnonymous bool)) *MockOry_Authenticate_Call
- func (_c *MockOry_Authenticate_Call) RunAndReturn(run func(context.Context, string, bool) (*client.Session, error)) *MockOry_Authenticate_Call
- type MockOry_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOry ¶
MockOry is an autogenerated mock type for the Ory type
func NewMockOry ¶
NewMockOry creates a new instance of MockOry. 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 (*MockOry) Authenticate ¶
func (_m *MockOry) Authenticate(ctx context.Context, cookie string, allowAnonymous bool) (*client.Session, error)
Authenticate provides a mock function with given fields: ctx, cookie, allowAnonymous
func (*MockOry) EXPECT ¶
func (_m *MockOry) EXPECT() *MockOry_Expecter
type MockOry_Authenticate_Call ¶
MockOry_Authenticate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authenticate'
func (*MockOry_Authenticate_Call) Return ¶
func (_c *MockOry_Authenticate_Call) Return(_a0 *client.Session, _a1 error) *MockOry_Authenticate_Call
func (*MockOry_Authenticate_Call) Run ¶
func (_c *MockOry_Authenticate_Call) Run(run func(ctx context.Context, cookie string, allowAnonymous bool)) *MockOry_Authenticate_Call
func (*MockOry_Authenticate_Call) RunAndReturn ¶
func (_c *MockOry_Authenticate_Call) RunAndReturn(run func(context.Context, string, bool) (*client.Session, error)) *MockOry_Authenticate_Call
type MockOry_Expecter ¶
type MockOry_Expecter struct {
// contains filtered or unexported fields
}
func (*MockOry_Expecter) Authenticate ¶
func (_e *MockOry_Expecter) Authenticate(ctx interface{}, cookie interface{}, allowAnonymous interface{}) *MockOry_Authenticate_Call
Authenticate is a helper method to define mock.On call
- ctx context.Context
- cookie string
- allowAnonymous bool
Click to show internal directories.
Click to hide internal directories.