- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for wantModes (0.26 sec)
-
pkg/registry/storage/csidriver/strategy_test.go
tests := []struct { name string old, update *storage.CSIDriver seLinuxMountReadWriteOncePodEnabled bool wantCapacity *bool wantModes []storage.VolumeLifecycleMode wantTokenRequests []storage.TokenRequest wantRequiresRepublish *bool wantGeneration int64
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 16.7K 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) -
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) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go
object runtime.Object wantCode int wantHeaders http.Header } newTest := func() test { return test{ name: "compress on gzip", out: largePayload, mediaType: "application/json", req: &http.Request{ Header: http.Header{ "Accept-Encoding": []string{"gzip"}, }, URL: &url.URL{Path: "/path"}, }, wantCode: http.StatusOK, wantHeaders: http.Header{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 15.7K bytes - Viewed (0) -
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) -
cni/pkg/repair/repair_test.go
} }) } } func TestDeletePods(t *testing.T) { tests := []struct { name string client kube.Client config config.RepairConfig wantErr bool wantPods []*corev1.Pod wantCount float64 wantTags map[string]string }{ { name: "No broken pods", client: fakeClient(workingPod, workingPodDiedPreviously), config: config.RepairConfig{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 10.6K bytes - Viewed (0) -
src/net/http/httptest/recorder_test.go
type checkFunc func(*ResponseRecorder) error check := func(fns ...checkFunc) []checkFunc { return fns } hasStatus := func(wantCode int) checkFunc { return func(rec *ResponseRecorder) error { if rec.Code != wantCode { return fmt.Errorf("Status = %d; want %d", rec.Code, wantCode) } return nil } } hasResultStatus := func(want string) checkFunc { return func(rec *ResponseRecorder) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 23:17:38 UTC 2022 - 9.7K bytes - Viewed (0) -
pkg/scheduler/schedule_one_test.go
if diff := cmp.Diff(wantFitErr, gotFitErr); diff != "" { t.Errorf("Unexpected fitErr: (-want, +got): %s", diff) } } } if test.wantNodes != nil && !test.wantNodes.Has(result.SuggestedHost) { t.Errorf("Expected: %s, got: %s", test.wantNodes, result.SuggestedHost) } wantEvaluatedNodes := len(test.nodes) if test.wantEvaluatedNodes != nil { wantEvaluatedNodes = int(*test.wantEvaluatedNodes)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:20:55 UTC 2024 - 128.1K bytes - Viewed (0)