test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, cond bool)

func Contains

func Contains(t *testing.T, str, pattern string)

func ContainsJSON

func ContainsJSON(t *testing.T, obj any, pattern string)

check if the json of obj contains pattern

func Context

func Context(t *testing.T) ctx.C

func Empty

func Empty(t *testing.T, obj any)

func EqualsGo

func EqualsGo(t *testing.T, expect, got any)

compare using "%#v"

func EqualsJSON

func EqualsJSON(t *testing.T, expect, got any)

compare using JSON

func EqualsStr

func EqualsStr(t *testing.T, expect, got string)

func Error

func Error(t *testing.T, err error)

func Fail

func Fail(t *testing.T, f string, args ...any)

func Nil

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

func NoError

func NoError(t *testing.T, err error)

func NotContainsJSON

func NotContainsJSON(t *testing.T, obj any, pattern string)

check if the json of obj does NOT contains pattern

func NotEmpty

func NotEmpty(t *testing.T, obj any)

func NotEqualsGo

func NotEqualsGo(t *testing.T, expect, got any)

compare using "%#v"

func NotEqualsJSON

func NotEqualsJSON(t *testing.T, expect, got any)

compare using JSON

func NotEqualsStr

func NotEqualsStr(t *testing.T, expect, got string)

func NotNil

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

func OK

func OK(t *testing.T, f string, args ...any)

func Quote

func Quote(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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