assert

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package assert provides asserter closures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(t assert.TestingT, actual string, msgAndArgs ...interface{}) bool

Func asserts actual input.

func Empty

func Empty() Func

Empty creates a new Func to check whether the actual data is empty.

func Equal

func Equal(expect string) Func

Equal creates a new Func to check whether the two values are equal.

func EqualJSON

func EqualJSON(expect string) Func

EqualJSON creates a new Func to check whether the two JSON values are equal.

func Nop

func Nop() Func

Nop creates a new Func that does not assert anything.

Jump to

Keyboard shortcuts

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