subcomponent_mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 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 SubComponent

type SubComponent struct {
	mock.Mock
}

SubComponent is an autogenerated mock type for the SubComponent type

func NewSubComponent

func NewSubComponent(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubComponent

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

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

Chance provides a mock function with given fields: s

func (*SubComponent) EXPECT

func (_m *SubComponent) EXPECT() *SubComponent_Expecter

type SubComponent_ChanceChain

type SubComponent_ChanceChain[T any] func(*T) *SubComponent_Chance_Call

func (SubComponent_ChanceChain[T]) Return

func (SubComponent_ChanceChain[T]) Run

func (SubComponent_ChanceChain[T]) RunAndReturn

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

type SubComponent_Chance_Call

type SubComponent_Chance_Call struct {
	*mock.Call
}

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

func (*SubComponent_Chance_Call) Return

func (*SubComponent_Chance_Call) Run

func (*SubComponent_Chance_Call) RunAndReturn

func (_c *SubComponent_Chance_Call) RunAndReturn(run func(rand.Source) bool) *SubComponent_Chance_Call

type SubComponent_Expecter

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

func (*SubComponent_Expecter) Chance

func (_e *SubComponent_Expecter) Chance(s interface{}) *SubComponent_Chance_Call

Chance is a helper method to define mock.On call

  • s rand.Source

type SubComponent_ExpecterChain

type SubComponent_ExpecterChain[T any] func(*T) *SubComponent_Expecter

func ExpecterChain

func ExpecterChain[T any](fetch func(*T) *SubComponent) SubComponent_ExpecterChain[T]

func (SubComponent_ExpecterChain[T]) Chance

func (c SubComponent_ExpecterChain[T]) Chance(s interface{}) SubComponent_ChanceChain[T]

Jump to

Keyboard shortcuts

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