package testutils
import "github.com/intel/goresctrl/pkg/testutils"
Index ¶
- func CreateTempFile(t *testing.T, data string) string
- func VerifyDeepEqual(t *testing.T, valueName string, expectedValue interface{}, seenValue interface{}) bool
- func VerifyError(t *testing.T, err error, expectedCount int, expectedSubstrings []string) bool
- func VerifyNoError(t *testing.T, err error) bool
- func VerifyStringSlices(t *testing.T, expected []string, got []string) bool
- func VerifyStrings(t *testing.T, expected string, got string) bool
Functions ¶
func CreateTempFile ¶
func VerifyDeepEqual ¶
func VerifyDeepEqual(t *testing.T, valueName string, expectedValue interface{}, seenValue interface{}) bool
VerifyDeepEqual checks that two values (including structures) are equal, or else it fails the test.
func VerifyError ¶
VerifyError checks a (multi)error has expected properties, or else it fails the test.
func VerifyNoError ¶
func VerifyStringSlices ¶
func VerifyStrings ¶
Source Files ¶
- Version
- v0.8.0 (latest)
- Published
- Sep 19, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 2 days ago –
Tools for package owners.