testutils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArraysArePermutations

func ArraysArePermutations[T comparable](a, b []T) bool

func AssertJSONEqualList

func AssertJSONEqualList(t *testing.T, expected []string, actual string)

func CompareJSON

func CompareJSON(t *testing.T, expected, actual string)

func ConvertToArray

func ConvertToArray(input string) []string

func EqualByteSlice

func EqualByteSlice(a, b []byte) bool

EqualByteSlice compares two byte slices and returns true if they are equal.

func EqualInt64Slice

func EqualInt64Slice(a, b []int64) bool

EqualInt64Slice compares two int64 slices and returns true if they are equal.

func IsJSONResponse

func IsJSONResponse(s string) bool

func IsJSONString

func IsJSONString(s string) bool

func NormalizeJSON

func NormalizeJSON(v interface{}) interface{}

func ParseCommand

func ParseCommand(cmd string) []string

func UnorderedEqual

func UnorderedEqual(expected, actual interface{}) bool

UnorderedEqual compares two slices of interfaces and returns true if they contain the same elements, regardless of order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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