- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 465 for testCases (0.14 sec)
-
testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/DefaultTestExecutionResult.groovy
} static String[] removeAllParentheses(String... testNames) { testNames.collect { removeParentheses(it) } as String[] } static String[][] removeAllParentheses(String[]... testNames) { testNames.collect { [removeParentheses(it[0]), it[1]] } as String[][] } static TestCase testCase(String name) { return new DefaultTestCase(name) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 10.5K bytes - Viewed (0) -
pkg/apis/discovery/validation/validation_test.go
}}, }, expectedErrors: 1, }, } for name, testCase := range testCases { t.Run(name, func(t *testing.T) { errs := ValidateEndpointSliceUpdate(testCase.newEndpointSlice, testCase.oldEndpointSlice) if len(errs) != testCase.expectedErrors { t.Errorf("Expected %d errors, got %d errors: %v", testCase.expectedErrors, len(errs), errs) } }) } } // Test helpers
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 05 10:48:05 UTC 2023 - 23.9K bytes - Viewed (0) -
pkg/probe/http/http_test.go
} }) server := httptest.NewServer(handler) defer server.Close() testCases := map[string]struct { hostHeader string expectedResult probe.Result }{ "success": {successHostHeader, probe.Success}, "fail": {failHostHeader, probe.Failure}, } for desc, test := range testCases { headers := http.Header{} headers.Add("Host", test.hostHeader)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 18 01:40:08 UTC 2023 - 15.7K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server_test.go
case "status": code, _ := strconv.Atoi(segments[1]) w.Header().Set("Location", "/") w.WriteHeader(code) default: return } } func TestNewServer(t *testing.T) { testCases := []struct { probe string err string }{ // Json can't be parsed. { probe: "invalid-prober-json-encoding", err: "failed to decode", }, // map key is not well formed. {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 42.6K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/JUnitTestClassExecutionResult.groovy
* This method exists for compatibility purposes, but is equivalent to {@link #assertTestsExecuted(java.lang.String[])}. */ @Override TestClassExecutionResult assertTestsExecuted(TestCase... testCases) { return assertTestsExecuted(testCases.collect { it.displayName } as String[]) } TestClassExecutionResult assertTestCount(int tests, int failures, int errors) { assert testClassNode.@tests == tests
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 10.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go
}, ExpectedIP: ip, }, } for i, test := range testCases { if a, e := GetClientIP(&test.Request), test.ExpectedIP; reflect.DeepEqual(e, a) != true { t.Fatalf("test case %d failed. expected: %v, actual: %v", i, e, a) } } } func TestAppendForwardedForHeader(t *testing.T) { testCases := []struct { addr, forwarded, expected string }{ {"1.2.3.4:8000", "", "1.2.3.4"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 18 01:21:56 UTC 2023 - 24.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/grpc_service_unix_test.go
{"emptyConfiguration", ""}, {"invalidScheme", "tcp://localhost:6060"}, } for _, testCase := range invalidConfigs { t.Run(testCase.name, func(t *testing.T) { _, err := NewGRPCService(ctx, testCase.endpoint, testProviderName, 1*time.Second) if err == nil { t.Fatalf("should fail to create envelope service for %s.", testCase.name) } }) } } func TestKMSOperationsMetric(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 19:25:52 UTC 2023 - 12.7K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/init_test.go
} defer cfgFile.Close() if _, err = cfgFile.WriteString(testInitConfig); err != nil { t.Fatalf("Unable to write file %q: %v", configFilePath, err) } testCases := []struct { name string args []string flags map[string]string validate func(*testing.T, *initData) expectError bool }{ // Init data passed using flags {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 19 12:26:20 UTC 2024 - 11.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go
stopCh := make(chan struct{}) defer close(stopCh) testCases := append(webhooktesting.NewMutatingTestCases(serverURL, "test-webhooks"), webhooktesting.ConvertToMutatingTestCases(webhooktesting.NewNonMutatingTestCases(serverURL), "test-webhooks")...) for _, tt := range testCases { // For now, skip failure cases or tests that explicitly skip benchmarking
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter_test.go
v3Object := &unstructured.Unstructured{Object: map[string]interface{}{"apiVersion": "foo/v3", "kind": "Widget", "metadata": map[string]interface{}{"name": "myv3"}}} testcases := []struct { Name string Object runtime.Object APIVersion string ExpectObjects []runtime.RawExtension }{ { Name: "empty list",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 19.2K bytes - Viewed (0)