builtin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Assertions = map[string]func(t assert.TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool{
	"equals":            assert.EqualValues,
	"equal":             assert.EqualValues,
	"greater_than":      assert.Greater,
	"less_than":         assert.Less,
	"greater_or_equals": assert.GreaterOrEqual,
	"less_or_equals":    assert.LessOrEqual,
	"not_equal":         assert.NotEqual,
	"contains":          assert.Contains,
	"regex_match":       assert.Regexp,

	"startswith":    StartsWith,
	"endswith":      EndsWith,
	"length_equals": EqualLength,
	"length_equal":  EqualLength,
}
View Source
var Functions = map[string]interface{}{
	"get_timestamp":     getTimestamp,
	"sleep":             sleep,
	"gen_random_string": genRandomString,
	"max":               math.Max,
	"md5":               MD5,
}

Functions

func EndsWith

func EndsWith(t assert.TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool

func EqualLength

func EqualLength(t assert.TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool

func MD5

func MD5(str string) string

func StartsWith

func StartsWith(t assert.TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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