testsupport

package
v0.0.0-...-0958f0d Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestInputFile

func GenerateTestInputFile(seqLen uint8, outputSize uint) []byte

GenerateTestInputFile generates a test input file, repeating a number sequence over and over.

func ValidateReadAtWrapperTransparency

func ValidateReadAtWrapperTransparency(
	t *testing.T, iterations uint, reference []byte, testee io.ReaderAt)

ValidateReadAtWrapperTransparency validates that a `ReadAt` implementation provides a transparent view into the given reference buffer.

func WriteSharedLibrary

func WriteSharedLibrary() (string, error)

WriteSharedLibrary writes a shared library to disk and returns its path

func WriteTestExecutable1

func WriteTestExecutable1() (string, error)

WriteTestExecutable1 writes a position independent executable to disk and returns its path

func WriteTestExecutable2

func WriteTestExecutable2() (string, error)

WriteTestExecutable2 writes a non- position independent executable to disk and returns its path

Types

This section is empty.

Jump to

Keyboard shortcuts

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