tt

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 6 Imported by: 0

README

tt

Thanks

assert

LICENSE

The project is released under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, expected, actual interface{})

AssertEqual validates that val1 is equal to val2 and throws an error with line number

func AssertFalse added in v1.0.2

func AssertFalse(t *testing.T, actual bool)

func AssertInMap added in v1.0.2

func AssertInMap(t *testing.T, m map[interface{}]interface{}, key interface{})

func AssertIsNil added in v1.0.1

func AssertIsNil(t *testing.T, actual interface{})

func AssertIsNotNil added in v1.0.1

func AssertIsNotNil(t *testing.T, actual interface{})

func AssertMatchRegex

func AssertMatchRegex(t *testing.T, value string, regex interface{})

AssertMatchRegex validates that value matches the regex, either string or *regex and throws an error with line number

func AssertNotEqual

func AssertNotEqual(t *testing.T, unexpected, actual interface{})

AssertNotEqual validates that val1 is not equal val2 and throws an error with line number

func AssertNotMatchRegex

func AssertNotMatchRegex(t *testing.T, value string, regex interface{})

AssertNotMatchRegex validates that value matches the regex, either string or *regex and throws an error with line number

func AssertPanicMatches

func AssertPanicMatches(t *testing.T, fn func(), matches string)

AssertPanicMatches validates that the panic output of running fn matches the supplied string

func AssertTrue added in v1.0.2

func AssertTrue(t *testing.T, actual bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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