require

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package require provides a set of tools for use with the Go testing package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T comparable](t *testing.T, actual, expected T)

Equal requires that the expected value is equal to the actual value. Actual and expected must be comparable.

func Nil

func Nil(t *testing.T, object any)

Nil requires that the value of the given object is nil.

func NotEqual

func NotEqual[T comparable](t *testing.T, actual, expected T)

NotEqual requires that the expected value is not equal to the actual value. Actual and expected must be comparable.

func NotNil

func NotNil(t *testing.T, object any)

NotNil requires that the value of the given object is not nil.

func True

func True(t *testing.T, value bool)

True requires that the given value is true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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