- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for wantCode (0.73 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) -
istioctl/cmd/sysexits_test.go
analyze.AnalyzerFoundIssuesError{}: ExitAnalyzerFoundIssues, } func TestKnownExitStrings(t *testing.T) { for err, wantCode := range KnownErrorCode { if code := GetExitCode(err); code != wantCode { t.Errorf("For %v want %v, but is %v", err, wantCode, code) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 1.3K 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) -
src/internal/dag/alg_test.go
// // "c" and "b" could be in either order, but Topo is // deterministic in reverse node definition order. // // "a" is a leaf. wantNodes := strings.Fields("d c b a") if !reflect.DeepEqual(wantNodes, got) { t.Fatalf("want topo sort %v, got %v", wantNodes, got) } } func TestTransitiveReduction(t *testing.T) { t.Run("diamond", func(t *testing.T) { g := mustParse(t, diamond) g.TransitiveReduction()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 04 15:31:44 UTC 2022 - 1.1K 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/internal/dag/parse_test.go
} } } } func TestParse(t *testing.T) { // Basic smoke test for graph parsing. g := mustParse(t, diamond) wantNodes := strings.Fields("a b c d") if !reflect.DeepEqual(wantNodes, g.Nodes) { t.Fatalf("want nodes %v, got %v", wantNodes, g.Nodes) } // Parse returns the transitive closure, so it adds d->a. wantEdges(t, g, "b->a c->a d->a d->b d->c")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 04 15:31:42 UTC 2022 - 1.3K 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) -
src/cmd/go/internal/load/pkg_test.go
pkg.ImportPath = tt.in pkg.GoFiles = tt.files pkg.Internal.CmdlineFiles = len(tt.files) > 0 gotMod := pkg.DefaultExecName() if gotMod != tt.wantMod { t.Errorf("pkg.DefaultExecName with ImportPath = %q in module mode = %v; want %v", tt.in, gotMod, tt.wantMod) } } { cfg.ModulesEnabled = false pkg := new(Package) pkg.ImportPath = tt.in pkg.GoFiles = tt.files
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 14:05:53 UTC 2022 - 2.4K bytes - Viewed (0)