testutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testutils contains helping methods to be used in tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertValidUUID

func AssertValidUUID(t *testing.T, value string, fieldName string)

AssertValidUUID asserts if the value is a valid UUID value is the value to be checked fieldName is the fieldName printed in the error message if the value is NOT a valid UUID

func ContainsAllRunes

func ContainsAllRunes(t *testing.T, str string, chars string, msgAndArgs ...interface{})

ContainsAllRunes helper to assert all runes in `chars` exist in `str`

func MustMakeTempFile

func MustMakeTempFile(t *testing.T, tempDir string, fileNamePattern string) *os.File

MustMakeTempFile creates a temporary file in the tempDir using the fileNamePattern Failure to create the temporary file will fail the test using assert.Fail Returns the file created

Types

This section is empty.

Jump to

Keyboard shortcuts

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