Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestHTTPDecoding (0.22 sec)

  1. src/encoding/json/stream_test.go

    					t.Fatalf("%s: token %d:\n\tinput: %s\n\tgot:  %T(%v)\n\twant: %T(%v)", tt.Where, i, tt.json, got, got, want, want)
    				}
    			}
    		})
    	}
    }
    
    // Test from golang.org/issue/11893
    func TestHTTPDecoding(t *testing.T) {
    	const raw = `{ "foo": "bar" }`
    
    	ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		w.Write([]byte(raw))
    	}))
    	defer ts.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 12.9K bytes
    - Viewed (0)
Back to top