signaltest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 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 MockListener

type MockListener interface {
	signals.Listener
	Send(os.Signal)
}

MockListener is a `Listener` that allows the developer to fake signals for testing purposes.

func NewMockListener

func NewMockListener(signals ...os.Signal) MockListener

NewMockListener returns the an implementation of a `MockListener`. This instance allows the programmer to send fake signals for testing.

Jump to

Keyboard shortcuts

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