examples

package
v0.0.0-...-0de771a Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example interface {
	Other(int) error
	Other2(int) error
	ValueMethod(a str)
	PointerMethod(b *str)
	SliceMethod(c []str)
	InterfaceMethod(c OInterface)

	StringValueMethod(a string)
	StringPointerMethod(b *string)
	StringSliceMethod(c []string)

	InterfaceReturn() OInterface
	PointerReturnA() *string
	PointerReturnB() *str

	// additional test cases
	Interface(interface{}) (interface{}, error)
	Variadic(...str) error
}

type ExampleMock

type ExampleMock struct {
	utils.MockedCalls
	// contains filtered or unexported fields
}

func NewExampleMock

func NewExampleMock(t *testing.T) *ExampleMock

func (*ExampleMock) AssertInterfaceCall

func (mockInstance *ExampleMock) AssertInterfaceCall(_001 interface{}, out002 interface{}, out003 error)

func (*ExampleMock) AssertInterfaceMethodCall

func (mockInstance *ExampleMock) AssertInterfaceMethodCall(c OInterface)

func (*ExampleMock) AssertInterfaceReturnCall

func (mockInstance *ExampleMock) AssertInterfaceReturnCall(out001 OInterface)

func (*ExampleMock) AssertOther2Call

func (mockInstance *ExampleMock) AssertOther2Call(_001 int, out002 error)

func (*ExampleMock) AssertOtherCall

func (mockInstance *ExampleMock) AssertOtherCall(_001 int, out002 error)

func (*ExampleMock) AssertPointerMethodCall

func (mockInstance *ExampleMock) AssertPointerMethodCall(b *str)

func (*ExampleMock) AssertPointerReturnACall

func (mockInstance *ExampleMock) AssertPointerReturnACall(out001 *string)

func (*ExampleMock) AssertPointerReturnBCall

func (mockInstance *ExampleMock) AssertPointerReturnBCall(out001 *str)

func (*ExampleMock) AssertSliceMethodCall

func (mockInstance *ExampleMock) AssertSliceMethodCall(c []str)

func (*ExampleMock) AssertStringPointerMethodCall

func (mockInstance *ExampleMock) AssertStringPointerMethodCall(b *string)

func (*ExampleMock) AssertStringSliceMethodCall

func (mockInstance *ExampleMock) AssertStringSliceMethodCall(c []string)

func (*ExampleMock) AssertStringValueMethodCall

func (mockInstance *ExampleMock) AssertStringValueMethodCall(a string)

func (*ExampleMock) AssertValueMethodCall

func (mockInstance *ExampleMock) AssertValueMethodCall(a str)

func (*ExampleMock) AssertVariadicCall

func (mockInstance *ExampleMock) AssertVariadicCall(_001 []str, out002 error)

func (*ExampleMock) Interface

func (mockInstance *ExampleMock) Interface(_001 interface{}) (interface{}, error)

func (*ExampleMock) InterfaceMethod

func (mockInstance *ExampleMock) InterfaceMethod(c OInterface)

func (*ExampleMock) InterfaceReturn

func (mockInstance *ExampleMock) InterfaceReturn() OInterface

func (*ExampleMock) Other

func (mockInstance *ExampleMock) Other(_001 int) error

func (*ExampleMock) Other2

func (mockInstance *ExampleMock) Other2(_001 int) error

func (*ExampleMock) PointerMethod

func (mockInstance *ExampleMock) PointerMethod(b *str)

func (*ExampleMock) PointerReturnA

func (mockInstance *ExampleMock) PointerReturnA() *string

func (*ExampleMock) PointerReturnB

func (mockInstance *ExampleMock) PointerReturnB() *str

func (*ExampleMock) SliceMethod

func (mockInstance *ExampleMock) SliceMethod(c []str)

func (*ExampleMock) StringPointerMethod

func (mockInstance *ExampleMock) StringPointerMethod(b *string)

func (*ExampleMock) StringSliceMethod

func (mockInstance *ExampleMock) StringSliceMethod(c []string)

func (*ExampleMock) StringValueMethod

func (mockInstance *ExampleMock) StringValueMethod(a string)

func (*ExampleMock) ValueMethod

func (mockInstance *ExampleMock) ValueMethod(a str)

func (*ExampleMock) Variadic

func (mockInstance *ExampleMock) Variadic(_001 ...str) error

type OInterface

type OInterface interface {
}

Jump to

Keyboard shortcuts

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