mock

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Abstract

type Abstract interface {
	Method(int) int
}

type Bar

type Bar struct {
	Baz string
}

type Embed

type Embed struct {
	EmbedEmbed
	EmbedString string
}

func (Embed) EmbedMethod

func (p Embed) EmbedMethod(_ int) string

type EmbedEmbed

type EmbedEmbed struct {
	EmbedEmbedString string
}

type Env

type Env struct {
	Embed
	Ambiguous          string
	Any                interface{}
	Bool               bool
	Float              float64
	Int64              int64
	Int32              int32
	Int                int
	Uint32             uint32
	String             string
	BoolPtr            *bool
	FloatPtr           *float64
	IntPtr             *int
	IntPtrPtr          **int
	StringPtr          *string
	Foo                Foo
	Abstract           Abstract
	ArrayOfAny         []interface{}
	ArrayOfInt         []int
	ArrayOfFoo         []Foo
	MapOfFoo           map[string]Foo
	MapOfAny           map[string]interface{}
	FuncParam          func(_ bool, _ int, _ string) bool
	FuncParamAny       func(_ interface{}) bool
	FuncTooManyReturns func() (int, int, error)
	FuncNamed          MyFunc
	NilFn              func()
	Variadic           func(_ int, _ ...int) bool
	Fast               func(...interface{}) interface{}
	Time               time.Time
	Duration           time.Duration
}

func (Env) Func

func (p Env) Func() int

func (Env) FuncFoo

func (p Env) FuncFoo(_ Foo) int

func (Env) FuncTyped added in v1.10.2

func (p Env) FuncTyped(_ string) int

type Foo

type Foo struct {
	Bar Bar
}

func (Foo) Method

func (Foo) Method() Bar

type MyFunc added in v1.10.5

type MyFunc func(string) int

Jump to

Keyboard shortcuts

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