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 KeyOps

type KeyOps struct {
	mock.Mock
}

KeyOps is an autogenerated mock type for the KeyOps type

func NewKeyOps

func NewKeyOps(t mockConstructorTestingTNewKeyOps) *KeyOps

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

func (*KeyOps) Create

func (_m *KeyOps) Create(project string, serviceAccountEmail string) (keyops.Key, []byte, error)

Create provides a mock function with given fields: project, serviceAccountEmail

func (*KeyOps) DeleteIfDisabled

func (_m *KeyOps) DeleteIfDisabled(key keyops.Key) error

DeleteIfDisabled provides a mock function with given fields: key

func (*KeyOps) EXPECT

func (_m *KeyOps) EXPECT() *KeyOps_Expecter

func (*KeyOps) EnsureDisabled

func (_m *KeyOps) EnsureDisabled(key keyops.Key) error

EnsureDisabled provides a mock function with given fields: key

func (*KeyOps) IsDisabled

func (_m *KeyOps) IsDisabled(key keyops.Key) (bool, error)

IsDisabled provides a mock function with given fields: key

type KeyOps_Create_Call

type KeyOps_Create_Call struct {
	*mock.Call
}

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

func (*KeyOps_Create_Call) Return

func (_c *KeyOps_Create_Call) Return(_a0 keyops.Key, _a1 []byte, _a2 error) *KeyOps_Create_Call

func (*KeyOps_Create_Call) Run

func (_c *KeyOps_Create_Call) Run(run func(project string, serviceAccountEmail string)) *KeyOps_Create_Call

func (*KeyOps_Create_Call) RunAndReturn

func (_c *KeyOps_Create_Call) RunAndReturn(run func(string, string) (keyops.Key, []byte, error)) *KeyOps_Create_Call

type KeyOps_DeleteIfDisabled_Call

type KeyOps_DeleteIfDisabled_Call struct {
	*mock.Call
}

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

func (*KeyOps_DeleteIfDisabled_Call) Return

func (*KeyOps_DeleteIfDisabled_Call) Run

func (*KeyOps_DeleteIfDisabled_Call) RunAndReturn

type KeyOps_EnsureDisabled_Call

type KeyOps_EnsureDisabled_Call struct {
	*mock.Call
}

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

func (*KeyOps_EnsureDisabled_Call) Return

func (*KeyOps_EnsureDisabled_Call) Run

func (*KeyOps_EnsureDisabled_Call) RunAndReturn

type KeyOps_Expecter

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

func (*KeyOps_Expecter) Create

func (_e *KeyOps_Expecter) Create(project interface{}, serviceAccountEmail interface{}) *KeyOps_Create_Call

Create is a helper method to define mock.On call

  • project string
  • serviceAccountEmail string

func (*KeyOps_Expecter) DeleteIfDisabled

func (_e *KeyOps_Expecter) DeleteIfDisabled(key interface{}) *KeyOps_DeleteIfDisabled_Call

DeleteIfDisabled is a helper method to define mock.On call

  • key keyops.Key

func (*KeyOps_Expecter) EnsureDisabled

func (_e *KeyOps_Expecter) EnsureDisabled(key interface{}) *KeyOps_EnsureDisabled_Call

EnsureDisabled is a helper method to define mock.On call

  • key keyops.Key

func (*KeyOps_Expecter) IsDisabled

func (_e *KeyOps_Expecter) IsDisabled(key interface{}) *KeyOps_IsDisabled_Call

IsDisabled is a helper method to define mock.On call

  • key keyops.Key

type KeyOps_IsDisabled_Call

type KeyOps_IsDisabled_Call struct {
	*mock.Call
}

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

func (*KeyOps_IsDisabled_Call) Return

func (*KeyOps_IsDisabled_Call) Run

func (_c *KeyOps_IsDisabled_Call) Run(run func(key keyops.Key)) *KeyOps_IsDisabled_Call

func (*KeyOps_IsDisabled_Call) RunAndReturn

func (_c *KeyOps_IsDisabled_Call) RunAndReturn(run func(keyops.Key) (bool, error)) *KeyOps_IsDisabled_Call

Jump to

Keyboard shortcuts

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