assertutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	IsNil   func(obtained any)
	FailNow func()
}

Checker accepts the injection of check functions and context from test files. Any check function should be set before usage unless the test will fail.

func CheckerWithNilAssert

func CheckerWithNilAssert(re *require.Assertions) *Checker

CheckerWithNilAssert creates Checker with nil assert function.

func NewChecker

func NewChecker() *Checker

NewChecker creates Checker.

func (*Checker) AssertNil

func (c *Checker) AssertNil(obtained any)

AssertNil calls the injected IsNil assertion.

Jump to

Keyboard shortcuts

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