Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 61 for tc (0.03 sec)

  1. src/net/url/url_test.go

    	for _, tc := range escapeBenchmarks {
    		b.Run("", func(b *testing.B) {
    			b.ReportAllocs()
    			var g string
    			for i := 0; i < b.N; i++ {
    				g = PathEscape(tc.unescaped)
    			}
    			b.StopTimer()
    			if g != tc.path {
    				b.Errorf("PathEscape(%q) == %q, want %q", tc.unescaped, g, tc.path)
    			}
    
    		})
    	}
    }
    
    func BenchmarkQueryUnescape(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  2. src/html/template/exec_test.go

    			"<nil>",
    		},
    	}
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			tmpl := Must(New("tmpl").Parse(tc.src))
    			err := tmpl.Execute(io.Discard, tc.value)
    			got := "<nil>"
    			if err != nil {
    				got = err.Error()
    			}
    			if !strings.HasSuffix(got, tc.want) {
    				t.Fatalf("got error %q, want %q", got, tc.want)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  3. pilot/pkg/model/push_context_test.go

    	pc.Mesh = m
    	pc.initWasmPlugins(env)
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			result := pc.WasmPluginsByListenerInfo(tc.node, tc.listenerInfo, tc.pluginType)
    			if !reflect.DeepEqual(tc.expectedExtensions, result) {
    				t.Errorf("WasmPlugins did not match expectations\n\ngot: %v\n\nexpected: %v", result, tc.expectedExtensions)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/defaults_test.go

    				}},
    			expectedIPMode: []*v1.LoadBalancerIPMode{&modeProxy},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.LoadBalancerIPMode, tc.ipModeEnabled)
    			obj := roundTrip(t, runtime.Object(tc.svc))
    			svc := obj.(*v1.Service)
    			for i, s := range svc.Status.LoadBalancer.Ingress {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_server_test.go

    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			hasAESGCMHardwareSupport = tc.serverHasAESGCM
    			hs := &serverHandshakeState{
    				c: &Conn{
    					config: &Config{
    						CipherSuites: tc.serverCiphers,
    					},
    					vers: VersionTLS12,
    				},
    				clientHello: &clientHelloMsg{
    					cipherSuites: tc.clientCiphers,
    					vers:         VersionTLS12,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  6. pkg/kubelet/server/server_test.go

    			t.Errorf("Expected registered handle path %s was missing", expectedPath)
    		}
    	}
    
    	for _, tc := range AuthzTestCases() {
    		expectedCases[tc.Method+":"+tc.Path] = true
    	}
    
    	for tc, found := range expectedCases {
    		if !found {
    			t.Errorf("Missing authz test case for %s", tc)
    		}
    	}
    }
    
    func TestAuthFilters(t *testing.T) {
    	// Enable features.ContainerCheckpoint during test
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    					cpuRequest:    tc.apiSpecResources[idx].Requests.Cpu().MilliValue(),
    				},
    				currentContainerResources: &containerResources{
    					memoryLimit:   tc.apiStatusResources[idx].Limits.Memory().Value(),
    					memoryRequest: tc.apiStatusResources[idx].Requests.Memory().Value(),
    					cpuLimit:      tc.apiStatusResources[idx].Limits.Cpu().MilliValue(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  8. cmd/kube-controller-manager/app/options/options_test.go

    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			errs := tc.options.Validate()
    			if len(errs) > 0 && !tc.expectErrors {
    				t.Errorf("expected no errors, errors found %+v", errs)
    			}
    
    			if len(errs) == 0 && tc.expectErrors {
    				t.Errorf("expected errors, no errors found")
    			}
    
    			if len(errs) > 0 && tc.expectErrors {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    				},
    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.desc, func(t *testing.T) {
    			ctx, cancel := context.WithCancel(context.Background())
    			t.Cleanup(cancel)
    
    			_, _, _, err := getTransformerOverridesAndKMSPluginProbes(ctx, tc.config, "")
    			if errString(err) != tc.expectedError {
    				t.Errorf("expected error %s but got %s", tc.expectedError, errString(err))
    			}
    		})
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  10. src/time/time_test.go

    }
    
    func TestParseDurationErrors(t *testing.T) {
    	for _, tc := range parseDurationErrorTests {
    		_, err := ParseDuration(tc.in)
    		if err == nil {
    			t.Errorf("ParseDuration(%q) = _, nil, want _, non-nil", tc.in)
    		} else if !strings.Contains(err.Error(), tc.expect) {
    			t.Errorf("ParseDuration(%q) = _, %q, error does not contain %q", tc.in, err, tc.expect)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top