example

package
v0.0.0-...-f0190a3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target interface {
	Bool(bool) bool
	Chan(chan int) chan int
	Complex(complex64, complex128) (complex64, complex128)
	Error(error) error
	Float(float32, float64) (float32, float64)
	Func(func(int) float32) func(int) float32
	Int(int, int8, int16, int32, int64) (int, int8, int16, int32, int64)
	Interface(interface{}) interface{}
	Map(map[int]error) map[int]error
	Ptr(uintptr) uintptr
	Slice([]int) []int
	Text(byte, rune, string) (byte, rune, string)
	Uint(uint, uint8, uint16, uint32, uint64) (uint, uint8, uint16, uint32, uint64)
}

Target is a sophisticated interface.

type TargetMock

type TargetMock struct{ mock.Mock }

TargetMock implements example.Target

func NewTargetMock

func NewTargetMock() *TargetMock

NewTargetMock creates a new TargetMock

func (*TargetMock) Bool

func (r *TargetMock) Bool(p0 bool) bool

Bool implements (example.Target).Bool

func (*TargetMock) Chan

func (r *TargetMock) Chan(p0 chan int) chan int

Chan implements (example.Target).Chan

func (*TargetMock) Complex

func (r *TargetMock) Complex(p0 complex64, p1 complex128) (complex64, complex128)

Complex implements (example.Target).Complex

func (*TargetMock) Error

func (r *TargetMock) Error(p0 error) error

Error implements (example.Target).Error

func (*TargetMock) Float

func (r *TargetMock) Float(p0 float32, p1 float64) (float32, float64)

Float implements (example.Target).Float

func (*TargetMock) Func

func (r *TargetMock) Func(p0 func(int) float32) func(int) float32

Func implements (example.Target).Func

func (*TargetMock) Int

func (r *TargetMock) Int(p0 int, p1 int8, p2 int16, p3 int32, p4 int64) (int, int8, int16, int32, int64)

Int implements (example.Target).Int

func (*TargetMock) Interface

func (r *TargetMock) Interface(p0 interface{}) interface{}

Interface implements (example.Target).Interface

func (*TargetMock) Map

func (r *TargetMock) Map(p0 map[int]error) map[int]error

Map implements (example.Target).Map

func (*TargetMock) Ptr

func (r *TargetMock) Ptr(p0 uintptr) uintptr

Ptr implements (example.Target).Ptr

func (*TargetMock) Slice

func (r *TargetMock) Slice(p0 []int) []int

Slice implements (example.Target).Slice

func (*TargetMock) Text

func (r *TargetMock) Text(p0 byte, p1 rune, p2 string) (byte, rune, string)

Text implements (example.Target).Text

func (*TargetMock) Uint

func (r *TargetMock) Uint(p0 uint, p1 uint8, p2 uint16, p3 uint32, p4 uint64) (uint, uint8, uint16, uint32, uint64)

Uint implements (example.Target).Uint

Jump to

Keyboard shortcuts

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