hello

package
v0.0.0-...-c6a5d93 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 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 Greeter

type Greeter struct {
	mock.Mock
}

Greeter is an autogenerated mock type for the Greeter type

func NewGreeter

func NewGreeter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Greeter

NewGreeter creates a new instance of Greeter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Greeter) EXPECT

func (_m *Greeter) EXPECT() *Greeter_Expecter

func (*Greeter) Execute

func (_m *Greeter) Execute(_a0 context.Context, _a1 string) (string, error)

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

type Greeter_Execute_Call

type Greeter_Execute_Call struct {
	*mock.Call
}

Greeter_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*Greeter_Execute_Call) Return

func (_c *Greeter_Execute_Call) Return(_a0 string, _a1 error) *Greeter_Execute_Call

func (*Greeter_Execute_Call) Run

func (_c *Greeter_Execute_Call) Run(run func(_a0 context.Context, _a1 string)) *Greeter_Execute_Call

func (*Greeter_Execute_Call) RunAndReturn

func (_c *Greeter_Execute_Call) RunAndReturn(run func(context.Context, string) (string, error)) *Greeter_Execute_Call

type Greeter_Expecter

type Greeter_Expecter struct {
	// contains filtered or unexported fields
}

func (*Greeter_Expecter) Execute

func (_e *Greeter_Expecter) Execute(_a0 interface{}, _a1 interface{}) *Greeter_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

Jump to

Keyboard shortcuts

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