testing

package
v0.0.0-...-ff6eb74 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Time time.Time

Time is a static test time

Functions

func TempFile

func TempFile(t *testing.T, content string) (string, func())

TempFile returns a new temp file with given context and returns the filepath and a delete func

Types

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor is a static mock for monitor.Monitor interface

func NewMonitor

func NewMonitor(versions []monitor.Version, t time.Time, err error) *Monitor

NewMonitor returns a new Monitor instance

func (*Monitor) Versions

func (m *Monitor) Versions() ([]monitor.Version, time.Time, error)

Versions returns the versions set via constructor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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