assert

package
v0.7.0-nightly.20230510 Latest Latest
Warning

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

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

Documentation

Overview

Package assert declares dead-simple function testing helpers for Conduit that we can reasonably maintain ourselves.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(tb testing.TB, exp, act interface{})

Equal fails the test if exp is not equal to act.

func Error

func Error(tb testing.TB, err error)

Error fails if the error is nil.

func Nil

func Nil(tb testing.TB, act interface{})

Nil fails if the value is not nil.

func NotNil

func NotNil(tb testing.TB, act interface{})

NotNil fails if the value is nil.

func Ok

func Ok(tb testing.TB, err error)

Ok fails the test if err is not nil.

func True

func True(tb testing.TB, condition bool, msg string, v ...interface{})

True fails the test if the condition evaluates to false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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