assertutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 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 interface{})
	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 interface{})

AssertNil calls the injected IsNil assertion.

Jump to

Keyboard shortcuts

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