- Sort Score
- Result 10 results
- Languages All
Results 261 - 270 of 858 for err (0.02 sec)
-
tests/connpool_test.go
} }() db, err := gorm.Open(mysql.New(mysql.Config{Conn: conn, DisableWithReturning: true})) if err != nil { t.Fatalf("Should open db success, but got %v", err) } tx := db.Begin() user := *GetUser("transaction", Config{}) if err = tx.Save(&user).Error; err != nil { t.Fatalf("No error should raise, but got %v", err) }
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Tue Feb 06 02:54:40 UTC 2024 - 5.5K bytes - Viewed (0) -
src/bufio/scan_test.go
// Expect a panic defer func() { err := recover() if err == nil { t.Fatal("should have panicked") } if msg, ok := err.(string); !ok || !strings.Contains(msg, "empty tokens") { panic(err) } }() for count := 0; s.Scan(); count++ { if count > 1000 { t.Fatal("looping") } } if s.Err() != nil { t.Fatal("after scan:", s.Err()) } }
Registered: Tue Oct 29 11:13:09 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0) -
tests/transaction_test.go
} if err := tx.First(&User{}, "name = ?", user2.Name).Error; err != nil { t.Fatalf("Should find saved record") } return nil }); err != nil { t.Fatalf("no error should return, but got %v", err) } if err := DB.First(&User{}, "name = ?", user.Name).Error; err != nil { t.Fatalf("Should find saved record") } if err := DB.First(&User{}, "name = ?", user1.Name).Error; err == nil {
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Sat Sep 14 12:58:29 UTC 2024 - 12.9K bytes - Viewed (0) -
internal/s3select/jstream/decoder_test.go
t.Logf("depth=%d offset=%d len=%d (%v)", mv.Depth, mv.Offset, mv.Length, mv.Value) } err := decoder.Err() t.Logf("got error: %s", err) if err == nil { t.Fatalf("missing expected decoder error") } derr, ok := err.(DecoderError) if !ok { t.Fatalf("expected error of type DecoderError, got %T", err) } if derr.ReaderErr() == nil { t.Fatalf("missing expected underlying reader error") }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 6.6K bytes - Viewed (0) -
internal/bucket/versioning/versioning_test.go
} if err != nil { if tc.err == nil { t.Fatalf("Test %d: failed due to %v", i+1, err) } } else { if err := v.Validate(); tc.err != err { t.Fatalf("Test %d: validation failed due to %v", i+1, err) } if len(tc.excludedPrefixes) > 0 { var mismatch bool if len(v.ExcludedPrefixes) != len(tc.excludedPrefixes) {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Sun May 08 05:06:44 UTC 2022 - 8.8K bytes - Viewed (0) -
cmd/object-api-interface_gen.go
z.Deleted, bts, err = msgp.ReadBoolBytes(bts) if err != nil { err = msgp.WrapError(err, "Deleted") return } case "Cached": z.Cached, bts, err = msgp.ReadBoolBytes(bts) if err != nil { err = msgp.WrapError(err, "Cached") return } case "NoMetadata": z.NoMetadata, bts, err = msgp.ReadBoolBytes(bts) if err != nil { err = msgp.WrapError(err, "NoMetadata") return }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Aug 22 21:57:20 UTC 2024 - 8.7K bytes - Viewed (0) -
internal/s3select/json/errors.go
statusCode int cause error } func (err *s3Error) Cause() error { return err.cause } func (err *s3Error) ErrorCode() string { return err.code } func (err *s3Error) ErrorMessage() string { return err.message } func (err *s3Error) HTTPStatusCode() int { return err.statusCode } func (err *s3Error) Error() string { return err.message }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.6K bytes - Viewed (0) -
internal/s3select/jstream/decoder.go
switch c { case '"': i, err := d.string() return i, String, err case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': i, err := d.number() return i, Number, err case '-': if c = d.next(); c < '0' || c > '9' { return nil, Unknown, d.mkError(ErrSyntax, "in negative numeric literal") } n, err := d.number() if err != nil { return nil, Unknown, err } return -n, Number, nil
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 13.5K bytes - Viewed (0) -
cmd/net_test.go
} for i, testCase := range testCases { host, port, err := extractHostPort(testCase.addr) if testCase.expectedErr == nil && err != nil { t.Fatalf("Test %d: should succeed but failed with err: %v", i+1, err) } if testCase.expectedErr != nil && err == nil { t.Fatalf("Test %d:, should fail but succeeded.", i+1) } if err == nil { if host != testCase.host {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
tests/migrate_test.go
var err error err = DB.AutoMigrate(&Coupon{}) if err != nil { t.Fatalf("AutoMigrate err:%v", err) } err = DB.Table("coupon_product_1").AutoMigrate(&CouponProduct{}) if err != nil { t.Fatalf("AutoMigrate err:%v", err) } err = DB.Table("coupon_product_2").AutoMigrate(&CouponProduct{}) if err != nil { t.Fatalf("AutoMigrate err:%v", err) }
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0)