testing

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDate

func AssertDate(t *testing.T, exp any, actual any, msgAndArgs ...any)

AssertDate compare mongo primitive.DateTime with a native time.Time object truncating nanoseconds to milliseconds to avoid

func AssertEmptyDate

func AssertEmptyDate(t *testing.T, actual any, msgAndArgs ...any)

AssertEmptyDate compare mongo primitive.DateTime with a native time.Time object truncating nanoseconds to milliseconds.

Types

type MongoDate

type MongoDate interface {
	Time() time.Time
}

type TimeTruncater

type TimeTruncater interface {
	Year() int
	Truncate(d time.Duration) time.Time
}

Jump to

Keyboard shortcuts

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