testdate

package
v0.0.0-...-e69eef7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 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