require

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package require is a minimal alternative to github.com/stretchr/testify/require.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t testing.TB, expected interface{}, actual interface{})

Equal fails the test if expected is not equal to actual.

func Error

func Error(t testing.TB, err error)

Error fails the test if err is nil.

func ErrorIs

func ErrorIs(t testing.TB, err error, target error)

ErrorIs fails the test if err is nil or does not match target.

func NoError

func NoError(t testing.TB, err error)

NoError fails the test if err is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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