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. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Clock 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. Source Files ¶ View all Source files clock.go weaver_gen.go Click to show internal directories. Click to hide internal directories.