test

package
v0.0.0-...-68fec7b Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abbr

func Abbr(s string) string

Abbreviate a string if there's more than 20 characters

func HashHexTest

func HashHexTest(t *testing.T, h hash.Hash, inHex string, expectHex string)

func HashTest

func HashTest(t *testing.T, h hash.Hash, in []byte, expectHex string)

func StringMatch

func StringMatch(t *testing.T, expect, found string)

Compares two strings, creates errors if they differ in length, and shows the values side by side with style markers to show character mismatch. Note this does no UTF8 folding etc, the strings are to be byte-identical

func StringMatchTitle

func StringMatchTitle(t *testing.T, title, prefix, expect, found string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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