mocks

package
v0.0.0-...-5665f0c Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoTgBot

type GoTgBot struct {
	mock.Mock
}

GoTgBot is an autogenerated mock type for the GoTgBot type

func NewGoTgBot

func NewGoTgBot(t interface {
	mock.TestingT
	Cleanup(func())
}) *GoTgBot

NewGoTgBot creates a new instance of GoTgBot. 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 (*GoTgBot) EXPECT

func (_m *GoTgBot) EXPECT() *GoTgBot_Expecter

func (*GoTgBot) SendMessage

func (_m *GoTgBot) SendMessage(ctx context.Context, params *bot.SendMessageParams) (*models.Message, error)

SendMessage provides a mock function with given fields: ctx, params

type GoTgBot_Expecter

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

func (*GoTgBot_Expecter) SendMessage

func (_e *GoTgBot_Expecter) SendMessage(ctx interface{}, params interface{}) *GoTgBot_SendMessage_Call

SendMessage is a helper method to define mock.On call

  • ctx context.Context
  • params *bot.SendMessageParams

type GoTgBot_SendMessage_Call

type GoTgBot_SendMessage_Call struct {
	*mock.Call
}

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

func (*GoTgBot_SendMessage_Call) Return

func (*GoTgBot_SendMessage_Call) Run

func (*GoTgBot_SendMessage_Call) RunAndReturn

type MultiplyTaskUseCase

type MultiplyTaskUseCase struct {
	mock.Mock
}

MultiplyTaskUseCase is an autogenerated mock type for the MultiplyTaskUseCase type

func NewMultiplyTaskUseCase

func NewMultiplyTaskUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MultiplyTaskUseCase

NewMultiplyTaskUseCase creates a new instance of MultiplyTaskUseCase. 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 (*MultiplyTaskUseCase) EXPECT

func (*MultiplyTaskUseCase) Get

Get provides a mock function with given fields:

func (*MultiplyTaskUseCase) Solve

func (_m *MultiplyTaskUseCase) Solve(task domain.MultiplyTask, solution int) bool

Solve provides a mock function with given fields: task, solution

type MultiplyTaskUseCase_Expecter

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

func (*MultiplyTaskUseCase_Expecter) Get

Get is a helper method to define mock.On call

func (*MultiplyTaskUseCase_Expecter) Solve

func (_e *MultiplyTaskUseCase_Expecter) Solve(task interface{}, solution interface{}) *MultiplyTaskUseCase_Solve_Call

Solve is a helper method to define mock.On call

  • task domain.MultiplyTask
  • solution int

type MultiplyTaskUseCase_Get_Call

type MultiplyTaskUseCase_Get_Call struct {
	*mock.Call
}

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

func (*MultiplyTaskUseCase_Get_Call) Return

func (*MultiplyTaskUseCase_Get_Call) Run

func (*MultiplyTaskUseCase_Get_Call) RunAndReturn

type MultiplyTaskUseCase_Solve_Call

type MultiplyTaskUseCase_Solve_Call struct {
	*mock.Call
}

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

func (*MultiplyTaskUseCase_Solve_Call) Return

func (*MultiplyTaskUseCase_Solve_Call) Run

func (*MultiplyTaskUseCase_Solve_Call) RunAndReturn

Jump to

Keyboard shortcuts

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