mockbuilder

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func NewFile

func NewFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *File

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

func (_m *File) EXPECT() *File_Expecter

func (*File) Exists

func (_m *File) Exists(fileName string) (bool, error)

Exists provides a mock function with given fields: fileName

type File_Exists_Call

type File_Exists_Call struct {
	*mock.Call
}

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

func (*File_Exists_Call) Return

func (_c *File_Exists_Call) Return(_a0 bool, _a1 error) *File_Exists_Call

func (*File_Exists_Call) Run

func (_c *File_Exists_Call) Run(run func(fileName string)) *File_Exists_Call

func (*File_Exists_Call) RunAndReturn

func (_c *File_Exists_Call) RunAndReturn(run func(string) (bool, error)) *File_Exists_Call

type File_Expecter

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

func (*File_Expecter) Exists

func (_e *File_Expecter) Exists(fileName interface{}) *File_Exists_Call

Exists is a helper method to define mock.On call

  • fileName string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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