MCPcopy Create free account
hub / github.com/buger/jsonparser / TestRemoval3_DecodeSingleUnicodeEscape_MinValue

Function TestRemoval3_DecodeSingleUnicodeEscape_MinValue

dead_code_audit_test.go:219–227  ·  view source on GitHub ↗

Verifies: SYS-REQ-014 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

217
218// Verifies: SYS-REQ-014 [boundary]
219func TestRemoval3_DecodeSingleUnicodeEscape_MinValue(t *testing.T) {
220 r, ok := decodeSingleUnicodeEscape([]byte(`\u0000`))
221 if !ok {
222 t.Fatal("failed to decode \\u0000")
223 }
224 if r != 0 {
225 t.Fatalf("expected 0, got 0x%X", r)
226 }
227}
228
229// Verifies: SYS-REQ-014 [boundary]
230func TestRemoval3_DecodeUnicodeEscape_BMP_NonSurrogate(t *testing.T) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected