Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkJSONFilter (0.21 sec)

  1. src/cmd/dist/testjson_test.go

    	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
    {"Package":"abc:variant"}trailing text
    {not json}
    no newline`
    	checkJSONFilter(t, in, want)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 20:13:24 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top