mocks

package
v0.0.0-...-2ad74da Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTimeTickerFunc

func NewTimeTickerFunc(ch <-chan time.Time) now.NewTimeTickerFunc

Types

type TimeTicker

type TimeTicker struct {
	mock.Mock
}

TimeTicker is an autogenerated mock type for the TimeTicker type

func NewTimeTicker

func NewTimeTicker(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeTicker

NewTimeTicker creates a new instance of TimeTicker. 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 (*TimeTicker) C

func (_m *TimeTicker) C() <-chan time.Time

C provides a mock function with given fields:

func (*TimeTicker) Reset

func (_m *TimeTicker) Reset(d time.Duration)

Reset provides a mock function with given fields: d

func (*TimeTicker) Stop

func (_m *TimeTicker) Stop()

Stop provides a mock function with given fields:

Jump to

Keyboard shortcuts

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