fakes

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

Fakes

This directory demonstrates how to fake a component in a weavertest. clock.go contains an implementation of a Clock component. clock_test.go tests the Clock component, but substitutes a fake for the real implementation. Run go test to run the test.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	// UnixMicro returns the current time in microseconds since the unix epoch.
	UnixMicro(context.Context) (int64, error)
}

Clock component interface.

Jump to

Keyboard shortcuts

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