package testutils

import "github.com/intel/goresctrl/pkg/testutils"

Index

Functions

func CreateTempFile

func CreateTempFile(t *testing.T, data string) string

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

func VerifyError(t *testing.T, err error, expectedCount int, expectedSubstrings []string) bool

VerifyError checks a (multi)error has expected properties, or else it fails the test.

func VerifyNoError

func VerifyNoError(t *testing.T, err error) bool

func VerifyStringSlices

func VerifyStringSlices(t *testing.T, expected []string, got []string) bool

func VerifyStrings

func VerifyStrings(t *testing.T, expected string, got string) bool

Source Files

file.go verify.go

Version
v0.8.0 (latest)
Published
Sep 19, 2024
Platform
linux/amd64
Imports
4 packages
Last checked
2 days ago

Tools for package owners.