mocks

package
v2.999.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A struct {
	mock.Mock
}

A is an autogenerated mock type for the A type

func (*A) Call

func (_m *A) Call() (test.B, error)

Call provides a mock function with given fields:

type AsyncProducer

type AsyncProducer struct {
	mock.Mock
}

AsyncProducer is an autogenerated mock type for the AsyncProducer type

func (*AsyncProducer) Input

func (_m *AsyncProducer) Input() chan<- bool

Input provides a mock function with given fields:

func (*AsyncProducer) Output

func (_m *AsyncProducer) Output() <-chan bool

Output provides a mock function with given fields:

func (*AsyncProducer) Whatever

func (_m *AsyncProducer) Whatever() chan bool

Whatever provides a mock function with given fields:

type Blank

type Blank struct {
	mock.Mock
}

Blank is an autogenerated mock type for the Blank type

func (*Blank) Create

func (_m *Blank) Create(x interface{}) error

Create provides a mock function with given fields: x

type ConsulLock

type ConsulLock struct {
	mock.Mock
}

ConsulLock is an autogenerated mock type for the ConsulLock type

func (*ConsulLock) Lock

func (_m *ConsulLock) Lock(_a0 <-chan struct{}) (<-chan struct{}, error)

Lock provides a mock function with given fields: _a0

func (*ConsulLock) Unlock

func (_m *ConsulLock) Unlock() error

Unlock provides a mock function with given fields:

type Example

type Example struct {
	mock.Mock
}

Example is an autogenerated mock type for the Example type

func (*Example) A

func (_m *Example) A() http.Flusher

A provides a mock function with given fields:

func (*Example) B

func (_m *Example) B(_a0 string) fixtureshttp.MyStruct

B provides a mock function with given fields: _a0

type Fooer

type Fooer struct {
	mock.Mock
}

Fooer is an autogenerated mock type for the Fooer type

func (*Fooer) Bar

func (_m *Fooer) Bar(f func([]int))

Bar provides a mock function with given fields: f

func (*Fooer) Baz

func (_m *Fooer) Baz(path string) func(string) string

Baz provides a mock function with given fields: path

func (*Fooer) Foo

func (_m *Fooer) Foo(f func(string) string) error

Foo provides a mock function with given fields: f

type FuncArgsCollision

type FuncArgsCollision struct {
	mock.Mock
}

FuncArgsCollision is an autogenerated mock type for the FuncArgsCollision type

func (*FuncArgsCollision) Foo

func (_m *FuncArgsCollision) Foo(ret interface{}) error

Foo provides a mock function with given fields: ret

type HasConflictingNestedImports

type HasConflictingNestedImports struct {
	mock.Mock
}

HasConflictingNestedImports is an autogenerated mock type for the HasConflictingNestedImports type

func (*HasConflictingNestedImports) Get

Get provides a mock function with given fields: path

func (*HasConflictingNestedImports) Z

Z provides a mock function with given fields:

type ImportsSameAsPackage

type ImportsSameAsPackage struct {
	mock.Mock
}

ImportsSameAsPackage is an autogenerated mock type for the ImportsSameAsPackage type

func (*ImportsSameAsPackage) A

func (_m *ImportsSameAsPackage) A() test.B

A provides a mock function with given fields:

func (*ImportsSameAsPackage) B

B provides a mock function with given fields:

func (*ImportsSameAsPackage) C

func (_m *ImportsSameAsPackage) C(_a0 fixtures.C)

C provides a mock function with given fields: _a0

type KeyManager

type KeyManager struct {
	mock.Mock
}

KeyManager is an autogenerated mock type for the KeyManager type

func (*KeyManager) GetKey

func (_m *KeyManager) GetKey(_a0 string, _a1 uint16) ([]byte, *test.Err)

GetKey provides a mock function with given fields: _a0, _a1

type MapFunc

type MapFunc struct {
	mock.Mock
}

MapFunc is an autogenerated mock type for the MapFunc type

func (*MapFunc) Get

func (_m *MapFunc) Get(m map[string]func(string) string) error

Get provides a mock function with given fields: m

type MapToInterface

type MapToInterface struct {
	mock.Mock
}

MapToInterface is an autogenerated mock type for the MapToInterface type

func (*MapToInterface) Foo

func (_m *MapToInterface) Foo(arg1 ...map[string]interface{})

Foo provides a mock function with given fields: arg1

type MyReader

type MyReader struct {
	mock.Mock
}

MyReader is an autogenerated mock type for the MyReader type

func (*MyReader) Read

func (_m *MyReader) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

type Requester

type Requester struct {
	mock.Mock
}

Requester is an autogenerated mock type for the Requester type

func (*Requester) Get

func (_m *Requester) Get(path string) (string, error)

Get provides a mock function with given fields: path

type Requester2

type Requester2 struct {
	mock.Mock
}

Requester2 is an autogenerated mock type for the Requester2 type

func (*Requester2) Get

func (_m *Requester2) Get(path string) error

Get provides a mock function with given fields: path

type Requester3

type Requester3 struct {
	mock.Mock
}

Requester3 is an autogenerated mock type for the Requester3 type

func (*Requester3) Get

func (_m *Requester3) Get() error

Get provides a mock function with given fields:

type Requester4

type Requester4 struct {
	mock.Mock
}

Requester4 is an autogenerated mock type for the Requester4 type

func (*Requester4) Get

func (_m *Requester4) Get()

Get provides a mock function with given fields:

type RequesterArgSameAsImport

type RequesterArgSameAsImport struct {
	mock.Mock
}

RequesterArgSameAsImport is an autogenerated mock type for the RequesterArgSameAsImport type

func (*RequesterArgSameAsImport) Get

Get provides a mock function with given fields: _a0

type RequesterArgSameAsNamedImport

type RequesterArgSameAsNamedImport struct {
	mock.Mock
}

RequesterArgSameAsNamedImport is an autogenerated mock type for the RequesterArgSameAsNamedImport type

func (*RequesterArgSameAsNamedImport) Get

Get provides a mock function with given fields: _a0

type RequesterArgSameAsPkg

type RequesterArgSameAsPkg struct {
	mock.Mock
}

RequesterArgSameAsPkg is an autogenerated mock type for the RequesterArgSameAsPkg type

func (*RequesterArgSameAsPkg) Get

func (_m *RequesterArgSameAsPkg) Get(_a0 string)

Get provides a mock function with given fields: _a0

type RequesterArray

type RequesterArray struct {
	mock.Mock
}

RequesterArray is an autogenerated mock type for the RequesterArray type

func (*RequesterArray) Get

func (_m *RequesterArray) Get(path string) ([2]string, error)

Get provides a mock function with given fields: path

type RequesterElided

type RequesterElided struct {
	mock.Mock
}

RequesterElided is an autogenerated mock type for the RequesterElided type

func (*RequesterElided) Get

func (_m *RequesterElided) Get(path string, url string) error

Get provides a mock function with given fields: path, url

type RequesterIface

type RequesterIface struct {
	mock.Mock
}

RequesterIface is an autogenerated mock type for the RequesterIface type

func (*RequesterIface) Get

func (_m *RequesterIface) Get() io.Reader

Get provides a mock function with given fields:

type RequesterNS

type RequesterNS struct {
	mock.Mock
}

RequesterNS is an autogenerated mock type for the RequesterNS type

func (*RequesterNS) Get

func (_m *RequesterNS) Get(path string) (http.Response, error)

Get provides a mock function with given fields: path

type RequesterPtr

type RequesterPtr struct {
	mock.Mock
}

RequesterPtr is an autogenerated mock type for the RequesterPtr type

func (*RequesterPtr) Get

func (_m *RequesterPtr) Get(path string) (*string, error)

Get provides a mock function with given fields: path

type RequesterReturnElided

type RequesterReturnElided struct {
	mock.Mock
}

RequesterReturnElided is an autogenerated mock type for the RequesterReturnElided type

func (*RequesterReturnElided) Get

func (_m *RequesterReturnElided) Get(path string) (int, int, int, error)

Get provides a mock function with given fields: path

type RequesterSlice

type RequesterSlice struct {
	mock.Mock
}

RequesterSlice is an autogenerated mock type for the RequesterSlice type

func (*RequesterSlice) Get

func (_m *RequesterSlice) Get(path string) ([]string, error)

Get provides a mock function with given fields: path

type RequesterVariadic

type RequesterVariadic struct {
	mock.Mock
}

RequesterVariadic is an autogenerated mock type for the RequesterVariadic type

func (*RequesterVariadic) Get

func (_m *RequesterVariadic) Get(values ...string) bool

Get provides a mock function with given fields: values

func (*RequesterVariadic) MultiWriteToFile

func (_m *RequesterVariadic) MultiWriteToFile(filename string, w ...io.Writer) string

MultiWriteToFile provides a mock function with given fields: filename, w

func (*RequesterVariadic) OneInterface

func (_m *RequesterVariadic) OneInterface(a ...interface{}) bool

OneInterface provides a mock function with given fields: a

func (*RequesterVariadic) Sprintf

func (_m *RequesterVariadic) Sprintf(format string, a ...interface{}) string

Sprintf provides a mock function with given fields: format, a

type RequesterVariadicOneArgument

type RequesterVariadicOneArgument struct {
	mock.Mock
}

RequesterVariadicOneArgument is an autogenerated mock type for the RequesterVariadic type

func (*RequesterVariadicOneArgument) Get

func (_m *RequesterVariadicOneArgument) Get(values ...string) bool

Get provides a mock function with given fields: values

func (*RequesterVariadicOneArgument) MultiWriteToFile

func (_m *RequesterVariadicOneArgument) MultiWriteToFile(filename string, w ...io.Writer) string

MultiWriteToFile provides a mock function with given fields: filename, w

func (*RequesterVariadicOneArgument) OneInterface

func (_m *RequesterVariadicOneArgument) OneInterface(a ...interface{}) bool

OneInterface provides a mock function with given fields: a

func (*RequesterVariadicOneArgument) Sprintf

func (_m *RequesterVariadicOneArgument) Sprintf(format string, a ...interface{}) string

Sprintf provides a mock function with given fields: format, a

type SendFunc

type SendFunc struct {
	mock.Mock
}

SendFunc is an autogenerated mock type for the SendFunc type

func (*SendFunc) Execute

func (_m *SendFunc) Execute(ctx context.Context, data string) (int, error)

Execute provides a mock function with given fields: ctx, data

type Sibling

type Sibling struct {
	mock.Mock
}

Sibling is an autogenerated mock type for the Sibling type

func (*Sibling) DoSomething

func (_m *Sibling) DoSomething()

DoSomething provides a mock function with given fields:

type UsesOtherPkgIface

type UsesOtherPkgIface struct {
	mock.Mock
}

UsesOtherPkgIface is an autogenerated mock type for the UsesOtherPkgIface type

func (*UsesOtherPkgIface) DoSomethingElse

func (_m *UsesOtherPkgIface) DoSomethingElse(obj test.Sibling)

DoSomethingElse provides a mock function with given fields: obj

Directories

Path Synopsis
buildtag
foo

Jump to

Keyboard shortcuts

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