package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Dec 9, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Equals(t *testing.T, actual interface{}, expected interface{})
Equals is a testing helper does a deep comparison of passed in interfaces
and fails test if they are not equal.
Ok is a testing helper that will fail the test if err does not equal nil.
ReadFileAsBytes is a testing helper, that returns the file if possible. If
there is an error, it will call t.Fatal(), ending the test.
ReadFileAsString is a testing helper, that returns the file if possible. If
there is an error, it will call t.Fatal(), ending the test.
Example:
content := test.ReadFileAsString(t, "folderA", "folderB", "file.txt")
Source Files
¶
Click to show internal directories.
Click to hide internal directories.