test

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, expected, actual any, msg ...any) bool

Test that two objects are equal. Log and continue when failed.

Example: Equal(t, "DD", Repeat("D", 2)) Equal(t, "DD", Repeat("D", 2), "%s expected Type=%v, Got=%v", "Test", "DD", Repeat("D", 2))

func False

func False(t *testing.T, actual bool, msg ...any) bool

Test that given object is false. Log and continue when failed.

Example: False(t, CanRepeat()) False(t, CanRepeat(), "%s expected Type=%v, Got=%v", "Test", true, CanRepeat())

func NotEqual

func NotEqual(t *testing.T, expected, actual any, msg ...any) bool

Test that two objects are not equal. Log and continue when failed.

Example: NotEqual(t, "DD", Repeat("D", 2)) NotEqual(t, "DD", Repeat("D", 2), "%s expected Type=%v, Got=%v", "Test", "DD", Repeat("D", 2))

func True

func True(t *testing.T, actual bool, msg ...any) bool

Test that given object is true. Log and continue when failed.

Example: True(t, CanRepeat()) True(t, CanRepeat(), "%s expected Type=%v, Got=%v", "Test", true, CanRepeat())

Types

This section is empty.

Jump to

Keyboard shortcuts

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