assert

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 8 Imported by: 0

README

Assert

Simplified version of testify, asserts equal to or nil.

import "github.com/fufuok/assert"

Index

func DeepEqual

func DeepEqual(expected, actual interface{}) bool

DeepEqual Ref: stretchr/testify

func Empty

func Empty(tb testing.TB, value interface{}, msgAndArgs ...interface{})

func Equal

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

Equal checks if values are equal Ref: gofiber/utils

func False

func False(tb testing.TB, value bool, msgAndArgs ...interface{})

func IsEmpty

func IsEmpty(o interface{}) bool

IsEmpty gets whether the specified object is considered empty or not. Ref: stretchr/testify

func IsNil

func IsNil(o interface{}) bool

IsNil Ref: stretchr/testify

func Nil

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

func NotEmpty

func NotEmpty(tb testing.TB, value interface{}, msgAndArgs ...interface{})

func NotEqual

func NotEqual(tb testing.TB, expected, actual interface{}, msgAndArgs ...interface{})

func NotNil

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

func Panics

func Panics(t *testing.T, title string, f func())

func True

func True(tb testing.TB, value bool, msgAndArgs ...interface{})

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepEqual added in v0.1.2

func DeepEqual(expected, actual interface{}) bool

DeepEqual Ref: stretchr/testify

func Empty added in v0.1.2

func Empty(tb testing.TB, value interface{}, msgAndArgs ...interface{})

func Equal

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

Equal checks if values are equal Ref: gofiber/utils

func False added in v0.1.1

func False(tb testing.TB, value bool, msgAndArgs ...interface{})

func IsEmpty added in v0.1.2

func IsEmpty(o interface{}) bool

IsEmpty gets whether the specified object is considered empty or not. Ref: stretchr/testify

func IsNil

func IsNil(o interface{}) bool

IsNil Ref: stretchr/testify

func Nil

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

func NotEmpty added in v0.1.2

func NotEmpty(tb testing.TB, value interface{}, msgAndArgs ...interface{})

func NotEqual

func NotEqual(tb testing.TB, expected, actual interface{}, msgAndArgs ...interface{})

func NotNil

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

func Panics

func Panics(t *testing.T, title string, f func())

func True added in v0.1.1

func True(tb testing.TB, value bool, msgAndArgs ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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