- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 2,444 for Errorf (0.14 sec)
-
src/archive/tar/writer_test.go
t.Errorf("WriteHeader() = got %v, want non-nil error", err) } if _, err := tw.Write(nil); err == nil { t.Errorf("Write() = %v, want non-nil error", err) } if err := tw.Flush(); err == nil { t.Errorf("Flush() = %v, want non-nil error", err) } if err := tw.Close(); err == nil { t.Errorf("Close() = %v, want non-nil error", err) } }) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 39.4K bytes - Viewed (0) -
tests/update_test.go
if res := DB.Model(user).Updates(values); res.Error != nil { t.Errorf("errors happened when update: %v", res.Error) } else if res.RowsAffected != 1 { t.Errorf("rows affected should be 1, but got : %v", res.RowsAffected) } else if user.Age != 5 { t.Errorf("Age should equals to 5, but got %v", user.Age) } else if user.Active != true { t.Errorf("Active should be true, but got %v", user.Active) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0) -
cni/pkg/pluginlistener/listener.go
"fmt" "net" "os" "path/filepath" "istio.io/istio/pkg/log" ) func NewListener(path string) (net.Listener, error) { // Remove unix socket before use. if err := os.Remove(path); err != nil && !os.IsNotExist(err) { // Anything other than "file not found" is an error. return nil, fmt.Errorf("failed to remove unix://%s: %v", path, err) } // Attempt to create the folder in case it doesn't exist
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 1.7K bytes - Viewed (0) -
src/archive/zip/zip_test.go
t.Errorf("UncompressedSize: got %d, want %d\n", got, want) } if got, want := fh2.UncompressedSize64, wantUncompressedSize64; got != want { t.Errorf("UncompressedSize64: got %d, want %d\n", got, want) } if got, want := fh2.ModifiedTime, fh.ModifiedTime; got != want { t.Errorf("ModifiedTime: got %d, want %d\n", got, want) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
cmd/object-api-getobjectinfo_test.go
if testCase.err.Error() != err.Error() { t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead", i+1, instanceType, testCase.err.Error(), err.Error()) } } // Test passes as expected, but the output values are verified for correctness here. if err == nil && testCase.shouldPass { if testCase.result.Bucket != result.Bucket {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Dec 23 15:46:00 UTC 2022 - 5.6K bytes - Viewed (0) -
cni/pkg/log/uds.go
if sockAddress == "" { return nil } log.Debugf("starting UDS server for CNI plugin logs") unixListener, err := uds.NewListener(sockAddress) if err != nil { return fmt.Errorf("failed to create UDS listener: %v", err) } go func() { if err := l.loggingServer.Serve(unixListener); network.IsUnexpectedListenerError(err) { log.Errorf("Error running UDS log server: %v", err) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 19:12:54 UTC 2024 - 4.7K bytes - Viewed (0) -
istioctl/pkg/tag/generate.go
if err != nil { return "", err } if len(revWebhooks) == 0 { return "", fmt.Errorf("cannot modify tag: cannot find MutatingWebhookConfiguration with revision %q", opts.Revision) } if len(revWebhooks) > 1 { return "", fmt.Errorf("cannot modify tag: found multiple canonical webhooks with revision %q", opts.Revision) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 13.3K bytes - Viewed (0) -
internal/bucket/encryption/bucket-sse-config_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 16 18:28:30 UTC 2022 - 6.1K bytes - Viewed (0) -
tests/associations_test.go
Create(coupon).Error if err != nil { t.Errorf("Failed, got error: %v", err) } if DB.First(&Coupon{}, "id = ?", coupon.ID).Error != nil { t.Errorf("Failed to query saved coupon") } if DB.First(&CouponProduct{}, "coupon_id = ? AND product_id = ?", coupon.ID, "full-save-association-product1").Error != nil { t.Errorf("Failed to query saved association") }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Feb 08 08:29:09 UTC 2023 - 10.9K bytes - Viewed (0) -
src/archive/tar/reader_test.go
if !slices.Equal(got, v.wantMap) { t.Errorf("test %d, readGNUSparsePAXHeaders(): got %v, want %v", i, got, v.wantMap) } if err != v.wantErr { t.Errorf("test %d, readGNUSparsePAXHeaders() = %v, want %v", i, err, v.wantErr) } if hdr.Size != v.wantSize { t.Errorf("test %d, Header.Size = %d, want %d", i, hdr.Size, v.wantSize) } if hdr.Name != v.wantName {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0)