- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for errString (0.22 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/fields_test.go
tests := []struct { set fieldpath.Set errString string }{ { set: *fieldpath.NewSet(invalidPath), errString: "invalid PathElement", }, } for _, test := range tests { _, err := SetToFields(test.set) if err == nil || !strings.Contains(err.Error(), test.errString) { t.Fatalf("Expected error to contain %q but got: %v", test.errString, err) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 3.9K bytes - Viewed (0) -
src/fmt/errors_test.go
}, { err: noVetErrorf("wrapped two errors: %w %w", errString("1"), errString("2")), wantText: "wrapped two errors: 1 2", wantSplit: []error{errString("1"), errString("2")}, }, { err: noVetErrorf("wrapped three errors: %w %w %w", errString("1"), errString("2"), errString("3")), wantText: "wrapped three errors: 1 2 3", wantSplit: []error{errString("1"), errString("2"), errString("3")}, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 18:40:40 UTC 2022 - 3.6K bytes - Viewed (0) -
tests/integration/operator/install_test.go
{ command: []string{"install", "--dry-run", "--revision", ""}, errString: InvalidRevision, }, { command: []string{"install", "--dry-run", "--revision", "1.8.0"}, errString: InvalidRevision, }, { command: []string{"install", "--dry-run", "--set", "values.global.network=network1"}, errString: "", }, } for _, test := range testCases {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 14:30:43 UTC 2024 - 2.8K bytes - Viewed (0) -
pkg/util/node/node_test.go
Status: v1.NodeStatus{Addresses: tc.Addresses}, } address, err := GetPreferredNodeAddress(node, tc.Preferences) errString := "" if err != nil { errString = err.Error() } if errString != tc.ExpectErr { t.Errorf("%s: expected err=%q, got %q", k, tc.ExpectErr, errString) } if address != tc.ExpectAddress { t.Errorf("%s: expected address=%q, got %q", k, tc.ExpectAddress, address) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 27 23:24:38 UTC 2023 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go
continue } if err != nil && len(tc.errString) == 0 { t.Errorf("[%v]did not expect error but got: %v", i, err) continue } if err != nil && len(tc.errString) > 0 && !strings.Contains(err.Error(), tc.errString) { t.Errorf("[%v]expected error with %q but got: %v", i, tc.errString, err) continue } if !reflect.DeepEqual(out, tc.out) { t.Errorf("[%v]expected:\n\t%+v\nbut got:\n\t%+v", i, tc.out, out)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 7.1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/postupgrade_test.go
} errString := "there are files need roll back" originalErr := errors.New(errString) err = rollbackFiles(filesToRollBack, originalErr) if err == nil { t.Fatalf("Expected error contains %q, got nil", errString) } if !strings.Contains(err.Error(), errString) { t.Fatalf("Expected error contains %q, got %v", errString, err) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 15 11:40:04 UTC 2024 - 7.2K bytes - Viewed (0) -
tests/util/leak/check.go
} if len(leaked) == 0 { return nil } time.Sleep(delay) delay += time.Millisecond * 10 } errString := strings.Builder{} for _, g := range leaked { errString.WriteString(fmt.Sprintf("Leaked goroutine: %v\n", g.stack)) } return errors.New(errString.String()) } // Check adds a check to a test to ensure there are no leaked goroutines
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 20 10:22:38 UTC 2023 - 6.9K bytes - Viewed (0) -
internal/grid/trace.go
start := time.Now() body := bytesOrLength(req) resp, err := c.roundtrip(h, req) end := time.Now() status := http.StatusOK errString := "" if err != nil { errString = err.Error() if IsRemoteErr(err) == nil { status = http.StatusInternalServerError } else { status = http.StatusBadRequest } } prefix := t.Prefix
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 01 05:17:37 UTC 2024 - 4.1K bytes - Viewed (0) -
testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/BuildOperationNotificationsFixtureTest.groovy
def listener = listener() when: listener.started(startedNotification(ErroringDetails)) then: def e = thrown(RuntimeException) e.message == "Failed to invoke erroring() of $ErroringDetails.name" e.cause instanceof RuntimeException e.cause.message == "!" } BuildOperationNotificationListener listener() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5K bytes - Viewed (0) -
fastapi/security/api_key.py
automatically cancel the request and send the client an error. If `auto_error` is set to `False`, when the query parameter is not available, instead of erroring out, the dependency result will be `None`. This is useful when you want to have optional authentication. It is also useful when you want to have authentication that can be
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Apr 23 22:29:18 UTC 2024 - 9.1K bytes - Viewed (0)