mocks

package
v0.0.0-...-65c2b02 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method struct {
	mock.Mock
}

Method is an autogenerated mock type for the Method type

func NewMethod

func NewMethod(t interface {
	mock.TestingT
	Cleanup(func())
}) *Method

NewMethod creates a new instance of Method. 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 (*Method) Authenticate

func (_m *Method) Authenticate(credentials auth.Credentials) (string, error)

Authenticate provides a mock function with given fields: credentials

func (*Method) EXPECT

func (_m *Method) EXPECT() *Method_Expecter

type Method_Authenticate_Call

type Method_Authenticate_Call struct {
	*mock.Call
}

Method_Authenticate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authenticate'

func (*Method_Authenticate_Call) Return

func (*Method_Authenticate_Call) Run

func (_c *Method_Authenticate_Call) Run(run func(credentials auth.Credentials)) *Method_Authenticate_Call

func (*Method_Authenticate_Call) RunAndReturn

type Method_Expecter

type Method_Expecter struct {
	// contains filtered or unexported fields
}

func (*Method_Expecter) Authenticate

func (_e *Method_Expecter) Authenticate(credentials interface{}) *Method_Authenticate_Call

Authenticate is a helper method to define mock.On call

  • credentials auth.Credentials

Jump to

Keyboard shortcuts

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