assert

package module
v0.0.0-...-b406f41 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 3 Imported by: 0

README

assert

import (
	"fmt"
	"testing"

	"code.gopub.tech/assert"
)

func TestXxx(t *testing.T){
    assert.True(t, 1 == 1)
    _ = assert.True
    _ = assert.False
    _ = assert.Nil
    _ = assert.NotNil
    _ = assert.Eq
    _ = assert.Ne
    _ = assert.DeepEqual
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepEqual

func DeepEqual(t *testing.T, left, right any, messages ...any)

func Equal

func Equal(t *testing.T, left, right any, messages ...any)

func False

func False(t *testing.T, cond bool, messages ...any)

func Nil

func Nil(t *testing.T, x any, messages ...any)

func NotEqual

func NotEqual(t *testing.T, left, right any, messages ...any)

func NotNil

func NotNil(t *testing.T, x any, messages ...any)

func Panic

func Panic(t *testing.T, fn func(), messages ...any)

func True

func True(t *testing.T, cond bool, messages ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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