MCPcopy Create free account
hub / github.com/akalin/gopar / TestDecodeNonASCIIString

Function TestDecodeNonASCIIString

par2/string_test.go:27–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestDecodeNonASCIIString(t *testing.T) {
28 s := "hello\x80world"
29 require.Equal(t, "hello\uFFFDworld", decodeNullPaddedASCIIString([]byte(s)))
30}
31
32func TestEncodeASCIIString(t *testing.T) {
33 strings := []string{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected