testing

package
v4.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 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 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