tst

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, subject, expected any)

func AssertEqualFn

func AssertEqualFn(t *testing.T) func(subject, expected any)

func AssertEqualWithErrorFn added in v0.2.0

func AssertEqualWithErrorFn(t *testing.T) func(got any, gotErr error) func(expected any, expectedErr error)

func Compare

func Compare(a, b any) bool

func Format

func Format(a any) string

func NoError

func NoError(t *testing.T, err error)

Types

type ErrorAsserter

type ErrorAsserter func(*testing.T, error)

func ExpectedErrorChecks

func ExpectedErrorChecks(expected ...func(*testing.T, error)) ErrorAsserter

func ExpectedErrorIs

func ExpectedErrorIs(allExpectedErrors ...error) ErrorAsserter

func ExpectedErrorOfType

func ExpectedErrorOfType[T error](assertsOnType ...func(*testing.T, T)) ErrorAsserter

func ExpectedErrorStringContains

func ExpectedErrorStringContains(str string) ErrorAsserter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳