- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 479 for Cases (0.07 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go
} func TestMicroTimeMarshalYAML(t *testing.T) { cases := []struct { input MicroTime result string }{ {MicroTime{}, "t: null\n"}, {DateMicro(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05.000000Z\"\n"}, {DateMicro(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05.000000Z\"\n"}, } for _, c := range cases { input := MicroTimeHolder{c.input}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 11.1K bytes - Viewed (0) -
pkg/config/validation/agent/extensionprovider_test.go
valid: false, }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { err := validateExtensionProviderTracingZipkin(c.config) valid := err == nil if valid != c.valid { t.Errorf("Expected valid=%v, got valid=%v for %v", c.valid, valid, c.config) } }) } } func TestValidateExtensionProviderTracingLightstep(t *testing.T) { cases := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 13.3K bytes - Viewed (0) -
cmd/kubeadm/app/util/version_test.go
"invalid-version": {"", "", false, true}, // invalid version cannot be parsed } for k, v := range cases { t.Run(k, func(t *testing.T) { fileFetcher := func(url string, timeout time.Duration) (string, error) { key := strings.TrimSuffix(path.Base(url), ".txt") res, found := cases[key] if found { if v.FetcherErrorExpected { return "error", errors.New("expected error") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 03:30:51 UTC 2024 - 15K bytes - Viewed (0) -
pilot/pkg/xds/proxy_dependencies_test.go
), false}, {"empty configsUpdated for sidecar", sidecar, nil, true}, } for k, name := range sidecarScopeKindNames { cases = append(cases, Case{ // valid name name: fmt.Sprintf("%s config for sidecar", k.String()), proxy: sidecar, configs: sets.New(model.ConfigKey{Kind: k, Name: name, Namespace: nsName}), want: true,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 13.5K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils_test.go
wantHas: true, }, } for name, tc := range cases { t.Run(name, func(t *testing.T) { has := tc.intervals.has(tc.index) if has != tc.wantHas { t.Errorf("intervalsHaveIndex(_, _) = %t, want %t", has, tc.wantHas) } }) } } func TestFirstPendingIndexes(t *testing.T) { cases := map[string]struct { cnt int completions int
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0) -
src/crypto/x509/oid_test.go
} for _, v := range oidTests { oid, ok := newOIDFromDER(v.raw) if !ok { continue } cases = append(cases, struct { in string out OID err error }{ in: v.str, out: oid, err: nil, }) } for _, tt := range cases { o, err := ParseOID(tt.in) if err != tt.err { t.Errorf("ParseOID(%q) = %v; want = %v", tt.in, err, tt.err) continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 19:10:38 UTC 2024 - 10.8K bytes - Viewed (0) -
pilot/pkg/model/extensions_test.go
Sha256: "fake-sha256", }, }, }, }, } for _, tc := range cases { t.Run("", func(t *testing.T) { u, err := url.Parse(tc.url) assert.NoError(t, err) got := buildDataSource(u, tc.wasmPlugin) assert.Equal(t, tc.expected, got) }) } } func TestBuildVMConfig(t *testing.T) { cases := []struct { desc string vm *extensions.VmConfig policy extensions.PullPolicy
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 14.4K bytes - Viewed (0) -
cni/pkg/install/cniconfig_test.go
} else if len(c.expectedConfName) > 0 { t.Fatalf("timed out waiting for expected %s", expectedFilepath) } else { // Successful test for test cases where CNI config file is never created return } } // Only for delayed cases select { case result := <-resultChan: if result != expectedFilepath { if len(expectedFilepath) > 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 15.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go
} return nil } func TestIntervalBufferIsFull(t *testing.T) { cases := []struct { endIndex int expected bool }{ {endIndex: bufferSize - 1, expected: false}, {endIndex: bufferSize, expected: true}, {endIndex: bufferSize + 1, expected: true}, } for _, c := range cases { wcib := &watchCacheIntervalBuffer{endIndex: c.endIndex} actual := wcib.isFull()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 09:20:10 UTC 2024 - 11.6K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route_internal_test.go
}, }, }, } for _, tt := range cases { t.Run(tt.name, func(t *testing.T) { mp := MirrorPercent(tt.route) if !reflect.DeepEqual(mp, tt.want) { t.Errorf("Unexpected mirror percent want %v, got %v", tt.want, mp) } }) } } func TestMirrorPercentByPolicy(t *testing.T) { cases := []struct { name string policy *networking.HTTPMirrorPolicy
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat May 11 02:47:57 UTC 2024 - 18.2K bytes - Viewed (0)