Discover Packages
github.com/gnabgib/gnablib-go
test
package
Version:
v0.0.0-...-68fec7b
Opens a new window with list of versions in this module.
Published: Jan 6, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Abbr(s)
HashHexTest(t, h, inHex, expectHex)
HashTest(t, h, in, expectHex)
StringMatch(t, expect, found)
StringMatchTitle(t, title, prefix, expect, found)
Types
Source Files
Documentation
Documentation
¶
func Abbr(s string) string
func HashHexTest(t *testing.T, h hash.Hash, inHex string, expectHex string)
func HashTest(t *testing.T, h hash.Hash, in []byte, expectHex string)
func StringMatch(t *testing.T, expect, found string)
func StringMatchTitle(t *testing.T, title, prefix, expect, found string)
Abbreviate a string if there's more than 20 characters
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(t *testing .T , title, prefix, expect, found string )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.