mocks

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthenticator

type MockAuthenticator struct {
	mock.Mock
}

MockAuthenticator is an autogenerated mock type for the Authenticator type

func NewMockAuthenticator

func NewMockAuthenticator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthenticator

NewMockAuthenticator creates a new instance of MockAuthenticator. 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 (*MockAuthenticator) Login

func (_m *MockAuthenticator) Login(ctx *gin.Context, session *sessions.Session) (*authenticator.LoginInfo, error)

Login provides a mock function with given fields: ctx, session

func (*MockAuthenticator) Middleware

func (_m *MockAuthenticator) Middleware() gin.HandlerFunc

Middleware provides a mock function with given fields:

func (*MockAuthenticator) Verify

func (_m *MockAuthenticator) Verify(ctx *gin.Context, session *sessions.Session) error

Verify provides a mock function with given fields: ctx, session

Jump to

Keyboard shortcuts

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