- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for wantCode (0.24 sec)
-
pilot/pkg/xds/debug_test.go
tests := []struct { name string wantCode int proxyID string }{ { name: "dumps most recent proxy with 200", proxyID: "test.default", wantCode: 200, }, { name: "returns 404 if proxy not found", proxyID: "not-found", wantCode: 404, }, { name: "returns 400 if no proxyID", proxyID: "", wantCode: 400, }, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 12 18:20:36 UTC 2024 - 7.8K bytes - Viewed (0) -
src/io/fs/readdir_test.go
Data: nil, Mode: os.ModeDir, ModTime: time.Now(), Sys: &sysValue, }, } tests := []struct { path string wantMode FileMode wantDir bool }{ {path: "notadir.txt", wantMode: 0, wantDir: false}, {path: "adir", wantMode: os.ModeDir, wantDir: true}, } for _, test := range tests { test := test t.Run(test.path, func(t *testing.T) { fi, err := Stat(testFs, test.path)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 16:25:41 UTC 2023 - 2.6K bytes - Viewed (0) -
pilot/pkg/request/command_test.go
wantMethod string wantPath string wantBody []byte StatusCode int Response string } func (p *pilotStubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { p.Lock() if r.Method == p.States[0].wantMethod { if r.URL.Path == p.States[0].wantPath { defer r.Body.Close() body, _ := io.ReadAll(r.Body) if err := util.Compare(body, p.States[0].wantBody); err == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 11 19:11:01 UTC 2023 - 4.1K bytes - Viewed (0) -
src/net/http/transport_dial_test.go
dt := newTransportDialTester(t, http1Mode) // First request creates a new connection. rt1 := dt.roundTrip() c1 := dt.wantDial() c1.finish(nil) rt1.wantDone(c1) rt1.finish() // Second request reuses the first connection. rt2 := dt.roundTrip() rt2.wantDone(c1) rt2.finish() } func TestTransportPoolConnCannotReuseConnectionInUse(t *testing.T) { dt := newTransportDialTester(t, http1Mode)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:11:57 UTC 2024 - 6.3K bytes - Viewed (0) -
src/net/http/httptest/httptest_test.go
slurp, err := io.ReadAll(got.Body) if err != nil { t.Errorf("ReadAll: %v", err) } if string(slurp) != tt.wantBody { t.Errorf("Body = %q; want %q", slurp, tt.wantBody) } tt.want = tt.want.WithContext(context.Background()) got.Body = nil // before DeepEqual if !reflect.DeepEqual(got.URL, tt.want.URL) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 18:09:14 UTC 2024 - 4.6K bytes - Viewed (0)