testdate

package
v0.0.0-...-0da26dc Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package testdate includes functionality to generate deterministic dates for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct{}

Generator is a generator of deterministic random dates.

func (*Generator) Random

func (g *Generator) Random(now time.Time) ir.NullTime

Random returns the NullTime that corresponds to now.

Jump to

Keyboard shortcuts

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