tt

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 6 Imported by: 0

README

tt

Go Reference

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 interface{}, key interface{})

func AssertIsError added in v1.0.3

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

func AssertIsNil added in v1.0.1

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

func AssertIsNotError added in v1.0.3

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

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 AssertPanic added in v1.0.4

func AssertPanic(t *testing.T, fn func())

AssertPanic validates that the function should panic

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