mocks

package
v0.0.0-...-e0ff526 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	mock.Mock
}

Auth is an autogenerated mock type for the Auth type

func NewAuth

func NewAuth(t interface {
	mock.TestingT
	Cleanup(func())
}) *Auth

NewAuth creates a new instance of Auth. 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 (*Auth) Init

func (_m *Auth) Init(ctx context.Context) error

Init provides a mock function with given fields: ctx

func (*Auth) LoggedInAs

func (_m *Auth) LoggedInAs(r *http.Request) (string, error)

LoggedInAs provides a mock function with given fields: r

func (*Auth) LoginURL

func (_m *Auth) LoginURL(w http.ResponseWriter, r *http.Request) string

LoginURL provides a mock function with given fields: w, r

Jump to

Keyboard shortcuts

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