tests

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepEqual added in v0.8.0

func DeepEqual[T any](tb testing.TB, got, expected T, format string, args ...any)

func Equal added in v0.8.0

func Equal[T comparable](tb testing.TB, got, expected T, format string, args ...any)

func ErrorIs added in v0.8.0

func ErrorIs(tb testing.TB, got, expected error, format string, args ...any)

func Expect added in v0.8.0

func Expect(tb testing.TB, cond bool, format string, args ...any)

func NotPanics added in v0.8.0

func NotPanics(tb testing.TB, fn func(), format string, args ...any)

func Panics added in v0.8.0

func Panics(tb testing.TB, fn func(), format string, args ...any) (recovered any)

Types

type Time

type Time struct {
	// contains filtered or unexported fields
}

func (*Time) Add

func (t *Time) Add(d time.Duration)

func (*Time) Fixed

func (t *Time) Fixed() (time.Time, bool)

func (*Time) Now

func (t *Time) Now() time.Time

func (*Time) Reset

func (t *Time) Reset()

func (*Time) Rewind

func (t *Time) Rewind()

func (*Time) Set

func (t *Time) Set(ts time.Time)

Jump to

Keyboard shortcuts

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