test

package
v0.0.0-...-1da2387 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, got, want any)

func AssertErrorContains

func AssertErrorContains(t *testing.T, got error, want string)

func AssertErrorIs

func AssertErrorIs(t *testing.T, got error, want error)

func AssertNilError

func AssertNilError(t *testing.T, got error)

func AssertNotEqual

func AssertNotEqual(t *testing.T, got, notwant any)

func AssertSliceContains

func AssertSliceContains[T comparable](t *testing.T, got []T, want T)

func AssertStringContains

func AssertStringContains(t *testing.T, got, want string)

func Config

func Config(t *testing.T) config.Config

Types

type CloserFunc

type CloserFunc func()

func Database

func Database(t *testing.T) (database.Conn, CloserFunc)

func Repository

func Repository(t *testing.T) (*repository.Repository, CloserFunc)

type Random

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

func NewRandom

func NewRandom() *Random

func NewRandomFromSeed

func NewRandomFromSeed(seed int64) *Random

func (*Random) Bytes

func (r *Random) Bytes(n int) []byte

func (*Random) Int

func (r *Random) Int() int

func (*Random) String

func (r *Random) String(n int) string

func (*Random) Time

func (r *Random) Time() time.Time

func (*Random) URL

func (r *Random) URL() string

func (*Random) UUID

func (r *Random) UUID() uuid.UUID

Jump to

Keyboard shortcuts

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