testing

package
v0.0.0-...-bb812c9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0, GPL-3.0, MIT 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 primitives.Slot
}

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

func (*MockTicker) C

func (m *MockTicker) C() <-chan primitives.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