- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of about 10,000 for error2 (0.18 sec)
-
internal/config/storageclass/storage-class_test.go
t.Errorf("Test %d, Expected %v, got %v", i+1, tt.wantSc, gotSc) return } if tt.expectedError != nil && err.Error() != tt.expectedError.Error() { t.Errorf("Test %d, Expected `%v`, got `%v`", i+1, tt.expectedError, err) } } } func TestValidateParity(t *testing.T) { tests := []struct { rrsParity int ssParity int success bool setDriveCount int }{
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Aug 15 23:04:20 UTC 2023 - 4.3K bytes - Viewed (0) -
cmd/admin-handler-utils.go
return toAPIError(ctx, fmt.Errorf("error importing %s with: %w", fname, err)) } return toAPIError(ctx, fmt.Errorf("error importing %s from %s with: %w", entity, fname, err)) } // wraps import error for more context func importErrorWithAPIErr(ctx context.Context, apiErr APIErrorCode, err error, fname, entity string) APIError { if entity == "" { return errorCodes.ToAPIErrWithErr(apiErr, fmt.Errorf("error importing %s with: %w", fname, err))
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.2K bytes - Viewed (0) -
tests/delete_test.go
t.Errorf("errors happened when delete: %v", err) } if err := DB.Delete(&User{}).Error; err != gorm.ErrMissingWhereClause { t.Errorf("errors happened when delete: %v", err) } if err := DB.Where("id = ?", users[0].ID).First(&result).Error; err == nil || !errors.Is(err, gorm.ErrRecordNotFound) { t.Errorf("should returns record not found error, but got %v", err) } } func TestDeleteWithTable(t *testing.T) {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Oct 10 07:03:34 UTC 2023 - 9.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/union/unionauth_test.go
if err == nil { t.Errorf("Expected an error") } if !strings.Contains(err.Error(), "first") { t.Errorf("Expected error containing %v, got %v", "first", err) } if !strings.Contains(err.Error(), "second") { t.Errorf("Expected error containing %v, got %v", "second", err) } if isAuthenticated { t.Errorf("Unexpectedly authenticated: %v", isAuthenticated) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 22 17:16:59 UTC 2018 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/union/unionauth_test.go
if err == nil { t.Errorf("Expected an error") } if !strings.Contains(err.Error(), "first") { t.Errorf("Expected error containing %v, got %v", "first", err) } if !strings.Contains(err.Error(), "second") { t.Errorf("Expected error containing %v, got %v", "second", err) } if isAuthenticated { t.Errorf("Unexpectedly authenticated: %v", isAuthenticated) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 22 17:16:59 UTC 2018 - 5K bytes - Viewed (0) -
pkg/kubelet/container/sync_result_test.go
} // If the PodSyncResult is failed, it should be error result = PodSyncResult{} result.AddSyncResult(okResults...) result.Fail(errors.New("error")) if result.Error() == nil { t.Errorf("PodSyncResult should be error: %v", result) } // If the PodSyncResult is added an error PodSyncResult, it should be error errResult := PodSyncResult{} errResult.AddSyncResult(errResults...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 16:48:17 UTC 2019 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/priority_test.go
t.Errorf("%s: expected %v, got %v", tc.name, e, a) } switch { case tc.err == nil && actualErr == nil: case tc.err == nil: t.Errorf("%s: unexpected error: %v", tc.name, actualErr) case actualErr == nil: t.Errorf("%s: expected error: %v got nil", tc.name, tc.err) case tc.err.Error() != actualErr.Error(): t.Errorf("%s: expected %v, got %v", tc.name, tc.err, actualErr)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 06 15:24:58 UTC 2018 - 13.6K bytes - Viewed (0) -
src/syscall/asm_freebsd_arm.s
MOVW a4+16(FP), R3 // a4 MOVW R13, R4 MOVW $a5+20(FP), R13 // a5 to a6 are passed on stack SWI $0 // syscall MOVW R4, R13 MOVW $0, R2 BCS error6 MOVW R0, r1+28(FP) // r1 MOVW R1, r2+32(FP) // r2 MOVW R2, err+36(FP) // errno BL runtime·exitsyscall(SB) RET error6: MOVW $-1, R3 MOVW R3, r1+28(FP) // r1 MOVW R2, r2+32(FP) // r2 MOVW R0, err+36(FP) // errno BL runtime·exitsyscall(SB) RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 23 16:52:33 UTC 2015 - 3K bytes - Viewed (0) -
pkg/config/validation/agent/validation.go
// WrapWarning turns an error into a Validation as a warning func WrapWarning(e error) Validation { return Validation{Warning: e} } // wrapper around multierror.Append that enforces the invariant that if all input errors are nil, the output // error is nil (allowing validation without branching). func AppendValidation(v Validation, vs ...error) Validation { appendError := func(err, err2 error) error { if err == nil { return err2
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 30.9K bytes - Viewed (0) -
src/net/http/h2_error_test.go
var target externalStreamError streamErr := http2streamError(42, http2ErrCodeProtocol) ok := errors.As(streamErr, &target) if !ok { t.Fatalf("errors.As failed") } if target.StreamID != streamErr.StreamID { t.Errorf("got StreamID %v, expected %v", target.StreamID, streamErr.StreamID) } if target.Cause != streamErr.Cause { t.Errorf("got Cause %v, expected %v", target.Cause, streamErr.Cause) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 1K bytes - Viewed (0)