mocks

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artisan

type Artisan struct {
	mock.Mock
}

Artisan is an autogenerated mock type for the Artisan type

func NewArtisan

func NewArtisan(t mockConstructorTestingTNewArtisan) *Artisan

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

func (*Artisan) Call

func (_m *Artisan) Call(command string)

Call provides a mock function with given fields: command

func (*Artisan) CallAndExit

func (_m *Artisan) CallAndExit(command string)

CallAndExit provides a mock function with given fields: command

func (*Artisan) Register

func (_m *Artisan) Register(commands []console.Command)

Register provides a mock function with given fields: commands

func (*Artisan) Run

func (_m *Artisan) Run(args []string, exitIfArtisan bool)

Run provides a mock function with given fields: args, exitIfArtisan

type Context

type Context struct {
	mock.Mock
}

Context is an autogenerated mock type for the Context type

func NewContext

func NewContext(t mockConstructorTestingTNewContext) *Context

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

func (*Context) Argument

func (_m *Context) Argument(index int) string

Argument provides a mock function with given fields: index

func (*Context) Arguments

func (_m *Context) Arguments() []string

Arguments provides a mock function with given fields:

func (*Context) Option

func (_m *Context) Option(key string) string

Option provides a mock function with given fields: key

func (*Context) OptionBool added in v1.10.2

func (_m *Context) OptionBool(key string) bool

OptionBool provides a mock function with given fields: key

func (*Context) OptionFloat64 added in v1.10.2

func (_m *Context) OptionFloat64(key string) float64

OptionFloat64 provides a mock function with given fields: key

func (*Context) OptionFloat64Slice added in v1.10.2

func (_m *Context) OptionFloat64Slice(key string) []float64

OptionFloat64Slice provides a mock function with given fields: key

func (*Context) OptionInt added in v1.10.2

func (_m *Context) OptionInt(key string) int

OptionInt provides a mock function with given fields: key

func (*Context) OptionInt64 added in v1.10.2

func (_m *Context) OptionInt64(key string) int64

OptionInt64 provides a mock function with given fields: key

func (*Context) OptionInt64Slice added in v1.10.2

func (_m *Context) OptionInt64Slice(key string) []int64

OptionInt64Slice provides a mock function with given fields: key

func (*Context) OptionIntSlice added in v1.10.2

func (_m *Context) OptionIntSlice(key string) []int

OptionIntSlice provides a mock function with given fields: key

func (*Context) OptionSlice added in v1.10.2

func (_m *Context) OptionSlice(key string) []string

OptionSlice provides a mock function with given fields: key

Jump to

Keyboard shortcuts

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