mocks

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 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 Gate

type Gate struct {
	mock.Mock
}

Gate is an autogenerated mock type for the Gate type

func NewGate

func NewGate(t mockConstructorTestingTNewGate) *Gate

NewGate creates a new instance of Gate. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Gate) After

func (_m *Gate) After(callback func(context.Context, string, map[string]interface{}, *access.Response) *access.Response)

After provides a mock function with given fields: callback

func (*Gate) Allows

func (_m *Gate) Allows(ability string, arguments map[string]interface{}) bool

Allows provides a mock function with given fields: ability, arguments

func (*Gate) Any

func (_m *Gate) Any(abilities []string, arguments map[string]interface{}) bool

Any provides a mock function with given fields: abilities, arguments

func (*Gate) Before

func (_m *Gate) Before(callback func(context.Context, string, map[string]interface{}) *access.Response)

Before provides a mock function with given fields: callback

func (*Gate) Define

func (_m *Gate) Define(ability string, callback func(context.Context, map[string]interface{}) *access.Response)

Define provides a mock function with given fields: ability, callback

func (*Gate) Denies

func (_m *Gate) Denies(ability string, arguments map[string]interface{}) bool

Denies provides a mock function with given fields: ability, arguments

func (*Gate) Inspect

func (_m *Gate) Inspect(ability string, arguments map[string]interface{}) *access.Response

Inspect provides a mock function with given fields: ability, arguments

func (*Gate) None

func (_m *Gate) None(abilities []string, arguments map[string]interface{}) bool

None provides a mock function with given fields: abilities, arguments

func (*Gate) WithContext

func (_m *Gate) WithContext(ctx context.Context) access.Gate

WithContext provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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