- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 368 for tc (0.48 sec)
-
pkg/kubelet/network/dns/dns_test.go
}, } for _, tc := range testCases { options := mergeDNSOptions(tc.existingDNSConfigOptions, tc.dnsConfigOptions) // Options order may be changed after conversion. if !sets.New[string](options...).Equal(sets.New[string](tc.expectedOptions...)) { t.Errorf("%s: mergeDNSOptions(%v, %v)=%v, want %v", tc.desc, tc.existingDNSConfigOptions, tc.dnsConfigOptions, options, tc.expectedOptions) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 25.6K bytes - Viewed (0) -
pkg/kubelet/userns/userns_manager_test.go
assert.NoError(t, err) for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { // We don't validate the result. It was parsed with the json parser, we trust that. _, err = m.parseUserNsFileAndRecord(types.UID(tc.name), []byte(tc.file)) if (tc.success && err == nil) || (!tc.success && err != nil) { return } t.Errorf("expected success: %v but got error: %v", tc.success, err) }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 14.6K bytes - Viewed (0) -
pkg/volume/csi/csi_plugin_test.go
shouldFail: true, }, } for _, tc := range testCases { // Arrange & Act err := PluginHandler.ValidatePlugin(tc.pluginName, tc.endpoint, tc.versions) // Assert if tc.shouldFail && err == nil { t.Fatalf("expecting ValidatePlugin to fail, but got nil error for testcase: %#v", tc) } if !tc.shouldFail && err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
log.debug("Ignoring invalid initial token", e1); } return new SpnegoContext(tc.getConfig(), setupTargetName(tc, host, new NtlmContext(tc, this, doSigning))); } private static SSPContext setupTargetName ( CIFSContext tc, String host, NtlmContext ntlmContext ) { if ( host != null && tc.getConfig().isSendNTLMTargetName() ) { ntlmContext.setTargetName(String.format("cifs/%s", host));
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Tue Jul 07 12:07:20 UTC 2020 - 18.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go
for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { var targetNode checker.AstNode = testSizeNode{size: tc.targetSize} argNodes := make([]checker.AstNode, len(tc.argSizes)) for i, arg := range tc.argSizes { argNodes[i] = testSizeNode{size: arg} } result := est.EstimateCallCost(tc.function, tc.overload, &targetNode, argNodes)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 40.8K bytes - Viewed (0) -
cmd/kube-proxy/app/server_test.go
baseYAML := fmt.Sprintf( yamlTemplate, tc.bindAddress, tc.clusterCIDR, tc.healthzBindAddress, tc.metricsBindAddress, tc.mode) // Append additional configuration to the base yaml template yaml := fmt.Sprintf("%s\n%s", baseYAML, tc.extraConfig) config, err := options.loadConfig([]byte(yaml)) assert.NoError(t, err, "unexpected error for %s: %v", tc.name, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 05:08:41 UTC 2024 - 32.3K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/topology_hints_test.go
}) sort.SliceStable(tc.expectedHints, func(i, j int) bool { return tc.expectedHints[i].LessThan(tc.expectedHints[j]) }) if !reflect.DeepEqual(tc.expectedHints, hints) { t.Errorf("Expected in result to be %v , got %v", tc.expectedHints, hints) } } } func TestGetPodTopologyHints(t *testing.T) { machineInfo := returnMachineInfo() for _, tc := range returnTestCases() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 19K bytes - Viewed (0) -
pkg/api/v1/resource/helpers_test.go
}, } as := assert.New(t) for idx, tc := range cases { actual, err := ExtractResourceValueByContainerName(tc.fs, tc.pod, tc.cName) if tc.expectedError != nil { as.Equal(tc.expectedError, err, "expected test case [%d] to fail with error %v; got %v", idx, tc.expectedError, err) } else { as.Nil(err, "expected test case [%d] to not return an error; got %v", idx, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:13 UTC 2023 - 38.3K bytes - Viewed (0) -
src/image/image_test.go
SetRGBA64(x, y int, c color.RGBA64) }: tc.SetRGBA64(1, 1, color.RGBA64{0x7FFF, 0x3FFF, 0x0000, 0x7FFF}) case *NYCbCrA: memset(tc.YCbCr.Y, 0x77) memset(tc.YCbCr.Cb, 0x88) memset(tc.YCbCr.Cr, 0x99) memset(tc.A, 0xAA) case *Uniform: tc.C = color.RGBA64{0x7FFF, 0x3FFF, 0x0000, 0x7FFF} case *YCbCr: memset(tc.Y, 0x77) memset(tc.Cb, 0x88) memset(tc.Cr, 0x99)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 30 02:00:49 UTC 2021 - 10.8K bytes - Viewed (0) -
pkg/volume/projected/projected_test.go
success: true, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { testNamespace := "test_projected_namespace" tc.secret.ObjectMeta = metav1.ObjectMeta{ Namespace: testNamespace, Name: tc.name, } source := makeProjection(tc.name, utilptr.Int32Ptr(tc.mode), "secret") source.Sources[0].Secret.Items = tc.mappings
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 40.5K bytes - Viewed (0)