mocks

package
v0.0.0-...-bc12874 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Login

type Login struct {
	mock.Mock
}

Login is an autogenerated mock type for the Login type

func NewLogin

func NewLogin(t interface {
	mock.TestingT
	Cleanup(func())
}) *Login

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

func (_m *Login) HasRole(r *http.Request, role roles.Role) bool

HasRole provides a mock function with given fields: r, role

func (*Login) LoggedInAs

func (_m *Login) LoggedInAs(r *http.Request) alogin.EMail

LoggedInAs provides a mock function with given fields: r

func (*Login) LoginURL

func (_m *Login) LoginURL(r *http.Request) string

LoginURL provides a mock function with given fields: r

func (*Login) Roles

func (_m *Login) Roles(r *http.Request) roles.Roles

Roles provides a mock function with given fields: r

func (*Login) Status

func (_m *Login) Status(r *http.Request) alogin.Status

Status provides a mock function with given fields: r

Jump to

Keyboard shortcuts

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