mocks

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 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 LockFile

type LockFile struct {
	mock.Mock
}

LockFile is an autogenerated mock type for the LockFile type

func NewLockFile

func NewLockFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *LockFile

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

func (_m *LockFile) EXPECT() *LockFile_Expecter

func (*LockFile) Read

func (_m *LockFile) Read(moduleName string) (models.LockFileInfo, error)

Read provides a mock function with given fields: moduleName

type LockFile_Expecter

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

func (*LockFile_Expecter) Read

func (_e *LockFile_Expecter) Read(moduleName interface{}) *LockFile_Read_Call

Read is a helper method to define mock.On call

  • moduleName string

type LockFile_Read_Call

type LockFile_Read_Call struct {
	*mock.Call
}

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

func (*LockFile_Read_Call) Return

func (*LockFile_Read_Call) Run

func (_c *LockFile_Read_Call) Run(run func(moduleName string)) *LockFile_Read_Call

func (*LockFile_Read_Call) RunAndReturn

func (_c *LockFile_Read_Call) RunAndReturn(run func(string) (models.LockFileInfo, error)) *LockFile_Read_Call

Jump to

Keyboard shortcuts

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