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

Function TestEncodeNonASCIIString

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

Source from the content-addressed store, hash-verified

44}
45
46func TestEncodeNonASCIIString(t *testing.T) {
47 s := "hello\x80world"
48 _, err := encodeASCIIString(s)
49 require.Equal(t, errors.New("invalid ASCII character"), err)
50}

Callers

nothing calls this directly

Calls 1

encodeASCIIStringFunction · 0.85

Tested by

no test coverage detected