test

package
v0.0.0-...-9033d6b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KlipperJSONPaths = FromStrings(
	"display_status.message",
	"display_status.progress",
	"extruder.?\\ufffd\\ufffd\\u001c؆\\ufffd\\ufffd\\ufffd",
)
View Source
var Simple = FromStrings(
	"prefix1 suffix",
	"prefix2 suffix",
	"prefix3 suffix",
	"prefix5 suffix",
	"profit3 suffix",
	"profile",
	"progress",
	"poggers",
	"unrelated turtle",
	"semi-related turtle",
	"uncle turtle",
	"unrealistic turtle",
)

Functions

func BuildRandom

func BuildRandom(count int, maxlen int) []str.String[byte]

func BuildRandomP

func BuildRandomP(count, maxlen, pCount, pMaxLen, pMaxCount int) []str.String[byte]

func BuildSingleRandom

func BuildSingleRandom(prefix []byte, maxlen int, set *map[string]struct{}) str.String[byte]

func FromStrings

func FromStrings(s ...string) []str.String[byte]

func RandomBench

func RandomBench(b *testing.B, count, maxlen int)

func RandomBenchP

func RandomBenchP(t *testing.T, count, maxlen, pCount, pMaxlen, pMaxCount int)

func RandomCompileBench

func RandomCompileBench(b *testing.B, maxlen int)

func RandomTest

func RandomTest(t *testing.T, count, maxlen int)

func RandomTestName

func RandomTestName(operation string, count, maxlen int) string

func RandomTestP

func RandomTestP(t *testing.T, count, maxlen, pCount, pMaxlen, pMaxCount int)

func Test

func Test(t *testing.T, name string, slice slice.Slice[byte])

func TestSlice

func TestSlice[T testing.TB](slice slice.Slice[byte], trackCollisions bool, roundtrip bool) func(t T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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