testing

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package testing includes useful mocks for slot tickers in unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTicker

type MockTicker struct {
	Channel chan types.Slot
}

MockTicker defines a useful struct for mocking the Ticker interface from the slotutil package.

func (*MockTicker) C

func (m *MockTicker) C() <-chan types.Slot

C --

func (*MockTicker) Done

func (_ *MockTicker) Done()

Done --

Jump to

Keyboard shortcuts

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