clconnectmock

package
v0.39.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOry

type MockOry struct {
	mock.Mock
}

MockOry is an autogenerated mock type for the Ory type

func NewMockOry

func NewMockOry(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockOry

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

type MockOry_Authenticate_Call struct {
	*mock.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 (*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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL