tt

package module
v1.0.0 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, val1, val2 interface{})

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

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, val1, val2 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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