- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestJSONFilterMalformed (0.33 sec)
-
src/cmd/dist/testjson_test.go
{"Package":123} {} {"Package":"abc","Unexpected":[null,true,false,99999999999999999999]} ` want := strings.ReplaceAll(in, `"Package":"abc"`, `"Package":"abc:variant"`) checkJSONFilter(t, in, want) } func TestJSONFilterMalformed(t *testing.T) { const in = `unexpected text {"Package":"abc"} more text {"Package":"abc"}trailing text {not json} no newline` const want = `unexpected text {"Package":"abc:variant"} more text
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 20:13:24 UTC 2023 - 1.9K bytes - Viewed (0)