mocks

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMetrics

type AuthMetrics struct {
	mock.Mock
}

AuthMetrics is an autogenerated mock type for the AuthMetrics type

func NewAuthMetrics

func NewAuthMetrics(t mockConstructorTestingTNewAuthMetrics) *AuthMetrics

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

func (*AuthMetrics) EXPECT

func (_m *AuthMetrics) EXPECT() *AuthMetrics_Expecter

func (*AuthMetrics) LastAuthTime

func (_m *AuthMetrics) LastAuthTime(project string, serviceAccountEmail string, keyID string) (*time.Time, error)

LastAuthTime provides a mock function with given fields: project, serviceAccountEmail, keyID

type AuthMetrics_Expecter

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

func (*AuthMetrics_Expecter) LastAuthTime

func (_e *AuthMetrics_Expecter) LastAuthTime(project interface{}, serviceAccountEmail interface{}, keyID interface{}) *AuthMetrics_LastAuthTime_Call

LastAuthTime is a helper method to define mock.On call

  • project string
  • serviceAccountEmail string
  • keyID string

type AuthMetrics_LastAuthTime_Call

type AuthMetrics_LastAuthTime_Call struct {
	*mock.Call
}

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

func (*AuthMetrics_LastAuthTime_Call) Return

func (*AuthMetrics_LastAuthTime_Call) Run

func (_c *AuthMetrics_LastAuthTime_Call) Run(run func(project string, serviceAccountEmail string, keyID string)) *AuthMetrics_LastAuthTime_Call

func (*AuthMetrics_LastAuthTime_Call) RunAndReturn

Jump to

Keyboard shortcuts

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