maincomponent_mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainComponent

type MainComponent struct {
	mock.Mock
}

MainComponent is an autogenerated mock type for the MainComponent type

func NewMainComponent

func NewMainComponent(t interface {
	mock.TestingT
	Cleanup(func())
}) *MainComponent

NewMainComponent creates a new instance of MainComponent. 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 (*MainComponent) Chance

func (_m *MainComponent) Chance(s rand.Source) bool

Chance provides a mock function with given fields: s

func (*MainComponent) EXPECT

func (_m *MainComponent) EXPECT() *MainComponent_Expecter

func (*MainComponent) OtherFunction

func (_m *MainComponent) OtherFunction() bytes.Buffer

OtherFunction provides a mock function with given fields:

type MainComponent_ChanceChain

type MainComponent_ChanceChain[T any] func(*T) *MainComponent_Chance_Call

func (MainComponent_ChanceChain[T]) Return

func (MainComponent_ChanceChain[T]) Run

func (MainComponent_ChanceChain[T]) RunAndReturn

func (c MainComponent_ChanceChain[T]) RunAndReturn(run func(s rand.Source) bool) MainComponent_ChanceChain[T]

type MainComponent_Chance_Call

type MainComponent_Chance_Call struct {
	*mock.Call
}

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

func (*MainComponent_Chance_Call) Return

func (*MainComponent_Chance_Call) Run

func (*MainComponent_Chance_Call) RunAndReturn

type MainComponent_Expecter

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

func (*MainComponent_Expecter) Chance

func (_e *MainComponent_Expecter) Chance(s interface{}) *MainComponent_Chance_Call

Chance is a helper method to define mock.On call

  • s rand.Source

func (*MainComponent_Expecter) OtherFunction

OtherFunction is a helper method to define mock.On call

type MainComponent_ExpecterChain

type MainComponent_ExpecterChain[T any] func(*T) *MainComponent_Expecter

func ExpecterChain

func ExpecterChain[T any](fetch func(*T) *MainComponent) MainComponent_ExpecterChain[T]

func (MainComponent_ExpecterChain[T]) Chance

func (c MainComponent_ExpecterChain[T]) Chance(s interface{}) MainComponent_ChanceChain[T]

func (MainComponent_ExpecterChain[T]) OtherFunction

type MainComponent_OtherFunctionChain

type MainComponent_OtherFunctionChain[T any] func(*T) *MainComponent_OtherFunction_Call

func (MainComponent_OtherFunctionChain[T]) Return

func (MainComponent_OtherFunctionChain[T]) Run

func (MainComponent_OtherFunctionChain[T]) RunAndReturn

type MainComponent_OtherFunction_Call

type MainComponent_OtherFunction_Call struct {
	*mock.Call
}

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

func (*MainComponent_OtherFunction_Call) Return

func (*MainComponent_OtherFunction_Call) Run

func (*MainComponent_OtherFunction_Call) RunAndReturn

Jump to

Keyboard shortcuts

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