tests

package
v3.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertContains

func AssertContains(t *testing.T, s, substr string, shouldContain bool)

AssertContains asserts substring is contained in the given string.

func AssertErrorContains

func AssertErrorContains(t *testing.T, err error, s string)

AssertErrorContains asserts error is not nil and contains specified error string.

func AssertNoError

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

AssertNoError asserts no error.

func GetTestFileContent

func GetTestFileContent(t *testing.T, filename string) []byte

GetTestFileContent return test file content.

func GetTestFilePath

func GetTestFilePath(filename string) string

GetTestFilePath return test file absolute path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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