asserts

package
v0.0.25 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SameElements

func SameElements[T comparable](t assert.TestingT, expected, actual []T, extraMsgAndArgs ...any) bool

func SameKeyValues

func SameKeyValues[T, U comparable](t assert.TestingT, expected, actual map[T]U, extraMsgAndArgs ...any)

Types

type MockT

type MockT struct {
	Errors sets.Set[string]
}

func NewMockT

func NewMockT() *MockT

func (*MockT) Assert

func (m *MockT) Assert(t *testing.T, expectedErrors ...string)

func (*MockT) Errorf

func (m *MockT) Errorf(format string, args ...any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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