assert

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func So

func So(t testingT, actual any, assertion Func, expected ...any)

Types

type Func

type Func func(actual any, expected ...any) string

Directories

Path Synopsis
Package assertions contains the implementations for all assertions used with the So(...) method.
Package assertions contains the implementations for all assertions used with the So(...) method.
internal/go-diff/diffmatchpatch
Package diffmatchpatch offers robust algorithms to perform the operations required for synchronizing plain text.
Package diffmatchpatch offers robust algorithms to perform the operations required for synchronizing plain text.
internal/oglematchers
Package oglematchers provides a set of matchers useful in a testing or mocking framework.
Package oglematchers provides a set of matchers useful in a testing or mocking framework.
internal/unit
package unit implements a light-weight x-Unit style testing framework.
package unit implements a light-weight x-Unit style testing framework.
Package better contains the same listing as the should package, but each assertion is wrapped in behavior that decorates failure output with a 'fatal' prefix/indicator so that the So method can invoke testing.T.Fatal(...) to immediately end a test case.
Package better contains the same listing as the should package, but each assertion is wrapped in behavior that decorates failure output with a 'fatal' prefix/indicator so that the So method can invoke testing.T.Fatal(...) to immediately end a test case.
Package should is simply a rewording of the assertion functions in the assertions package.
Package should is simply a rewording of the assertion functions in the assertions package.

Jump to

Keyboard shortcuts

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