mocksecret

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) Get

func (_m *Manager) Get() []byte

Get provides a mock function with given fields:

func (*Manager) Validate

func (_m *Manager) Validate(_a0 []byte) bool

Validate provides a mock function with given fields: _a0

type Manager_Expecter

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

func (*Manager_Expecter) Get

Get is a helper method to define mock.On call

func (*Manager_Expecter) Validate

func (_e *Manager_Expecter) Validate(_a0 interface{}) *Manager_Validate_Call

Validate is a helper method to define mock.On call

  • _a0 []byte

type Manager_Get_Call

type Manager_Get_Call struct {
	*mock.Call
}

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

func (*Manager_Get_Call) Return

func (_c *Manager_Get_Call) Return(_a0 []byte) *Manager_Get_Call

func (*Manager_Get_Call) Run

func (_c *Manager_Get_Call) Run(run func()) *Manager_Get_Call

func (*Manager_Get_Call) RunAndReturn

func (_c *Manager_Get_Call) RunAndReturn(run func() []byte) *Manager_Get_Call

type Manager_Validate_Call

type Manager_Validate_Call struct {
	*mock.Call
}

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

func (*Manager_Validate_Call) Return

func (*Manager_Validate_Call) Run

func (_c *Manager_Validate_Call) Run(run func(_a0 []byte)) *Manager_Validate_Call

func (*Manager_Validate_Call) RunAndReturn

func (_c *Manager_Validate_Call) RunAndReturn(run func([]byte) bool) *Manager_Validate_Call

Jump to

Keyboard shortcuts

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