mocks

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 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 Scratch

type Scratch struct {
	mock.Mock
}

Scratch is an autogenerated mock type for the Scratch type

func NewScratch

func NewScratch(t interface {
	mock.TestingT
	Cleanup(func())
}) *Scratch

NewScratch creates a new instance of Scratch. 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 (*Scratch) Cleanup

func (_m *Scratch) Cleanup() error

Cleanup provides a mock function with given fields:

func (*Scratch) EXPECT

func (_m *Scratch) EXPECT() *Scratch_Expecter

func (*Scratch) Mkdir

func (_m *Scratch) Mkdir(nickname string) (string, error)

Mkdir provides a mock function with given fields: nickname

type Scratch_Cleanup_Call

type Scratch_Cleanup_Call struct {
	*mock.Call
}

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

func (*Scratch_Cleanup_Call) Return

func (*Scratch_Cleanup_Call) Run

func (_c *Scratch_Cleanup_Call) Run(run func()) *Scratch_Cleanup_Call

func (*Scratch_Cleanup_Call) RunAndReturn added in v1.0.73

func (_c *Scratch_Cleanup_Call) RunAndReturn(run func() error) *Scratch_Cleanup_Call

type Scratch_Expecter

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

func (*Scratch_Expecter) Cleanup

func (_e *Scratch_Expecter) Cleanup() *Scratch_Cleanup_Call

Cleanup is a helper method to define mock.On call

func (*Scratch_Expecter) Mkdir

func (_e *Scratch_Expecter) Mkdir(nickname interface{}) *Scratch_Mkdir_Call

Mkdir is a helper method to define mock.On call

  • nickname string

type Scratch_Mkdir_Call

type Scratch_Mkdir_Call struct {
	*mock.Call
}

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

func (*Scratch_Mkdir_Call) Return

func (_c *Scratch_Mkdir_Call) Return(_a0 string, _a1 error) *Scratch_Mkdir_Call

func (*Scratch_Mkdir_Call) Run

func (_c *Scratch_Mkdir_Call) Run(run func(nickname string)) *Scratch_Mkdir_Call

func (*Scratch_Mkdir_Call) RunAndReturn added in v1.0.73

func (_c *Scratch_Mkdir_Call) RunAndReturn(run func(string) (string, error)) *Scratch_Mkdir_Call

Jump to

Keyboard shortcuts

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