- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 2,660 for Errorf (0.05 seconds)
-
internal/bucket/lifecycle/error.go
package lifecycle import ( "fmt" ) // Error is the generic type for any error happening during tag // parsing. type Error struct { err error } // Errorf - formats according to a format specifier and returns // the string as a value that satisfies error of type tagging.Error func Errorf(format string, a ...any) error { return Error{err: fmt.Errorf(format, a...)} } // Unwrap the internal error.
Created: 2025-12-28 19:28 - Last Modified: 2025-08-29 02:39 - 1.3K bytes - Click Count (0) -
internal/bucket/versioning/error.go
package versioning import ( "fmt" ) // Error is the generic type for any error happening during tag // parsing. type Error struct { err error } // Errorf - formats according to a format specifier and returns // the string as a value that satisfies error of type tagging.Error func Errorf(format string, a ...any) error { return Error{err: fmt.Errorf(format, a...)} } // Unwrap the internal error.
Created: 2025-12-28 19:28 - Last Modified: 2025-08-29 02:39 - 1.3K bytes - Click Count (0) -
tests/scanner_valuer_test.go
if err := DB.Create(&data).Error; err != nil { t.Errorf("Should got no error when creating data, but got %v", err) } if err := DB.Model(&data).Update("password", EncryptedData("xnewpass")).Error; err == nil { t.Errorf("Should failed to update data with invalid data") } if err := DB.Model(&data).Update("password", EncryptedData("newpass")).Error; err != nil {
Created: 2025-12-28 09:35 - Last Modified: 2023-06-07 07:02 - 10.6K bytes - Click Count (0) -
internal/deadlineconn/deadlineconn_test.go
t.Errorf(`server: expected: "message one\n", got: %v`, received) return } // Wait for more than read timeout to simulate processing. time.Sleep(3 * time.Second) _, terr = deadlineconn.Read(b) if terr != nil { t.Errorf("failed to read from client. %v", terr) return } received = string(b) if received != "message two\n" {
Created: 2025-12-28 19:28 - Last Modified: 2024-11-11 17:15 - 4.8K bytes - Click Count (0) -
internal/grid/types_test.go
if err != nil { t.Fatal(err) } if len(left) != 0 { t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left) } left, err = msgp.Skip(bts) if err != nil { t.Fatal(err) } if len(left) > 0 { t.Errorf("%d bytes left over after Skip(): %q", len(left), left) } if !reflect.DeepEqual(v, v2) { t.Errorf("MSS: %v != %v", v, v2) } }Created: 2025-12-28 19:28 - Last Modified: 2025-08-29 02:39 - 3.6K bytes - Click Count (0) -
src/bytes/bytes_test.go
a := Repeat(tin, tt.count) if !Equal(a, tout) { t.Errorf("Repeat(%q, %d) = %q; want %q", tin, tt.count, a, tout) continue } } } func repeat(b []byte, count int) (err error) { defer func() { if r := recover(); r != nil { switch v := r.(type) { case error: err = v default: err = fmt.Errorf("%s", v) } } }() Repeat(b, count)
Created: 2025-12-30 11:13 - Last Modified: 2025-12-23 23:54 - 62.9K bytes - Click Count (0) -
internal/s3select/sql/funceval.go
} return extract(strings.ToUpper(e.Timeword), t) } func errUnsupportedCast(fromType, toType string) error { return fmt.Errorf("Cannot cast from %v to %v", fromType, toType) } func errCastFailure(msg string) error { return fmt.Errorf("Error casting: %s", msg) } // Allowed cast types const ( castBool = "BOOL" castInt = "INT" castInteger = "INTEGER"
Created: 2025-12-28 19:28 - Last Modified: 2025-09-28 20:59 - 13.2K bytes - Click Count (0) -
tests/group_by_test.go
t.Errorf("no error should happen, but got %v", err) } if result.Name != "groupby1" || result.Total != 660 { t.Errorf("name should be groupby, total should be 660, but got %+v", result) } if err := DB.Model(&User{}).Select("name, sum(age) as total").Where("name LIKE ?", "groupby%").Group("name").Having("name = ?", "groupby1").Scan(&result).Error; err != nil {Created: 2025-12-28 09:35 - Last Modified: 2022-01-06 07:02 - 3.3K bytes - Click Count (0) -
tests/embedded_struct_test.go
t.Errorf("no error should happen when query with embedded struct, but got %v", err) } else if egNews.BasePost.Title != "engadget_news" { t.Errorf("embedded struct's value should be scanned correctly") } var egPosts []EngadgetPost if err := DB.Order("author_name asc").Find(&egPosts).Error; err != nil {Created: 2025-12-28 09:35 - Last Modified: 2024-05-08 04:07 - 7.3K bytes - Click Count (0) -
tests/generics_test.go
t.Errorf("failed to find user, got error: %v", err) } else if len(users) != 2 { t.Errorf("should find 2 users, but got %d", len(users)) } sg.Done() }() } sg.Wait() } func TestGenericsWithTransaction(t *testing.T) { ctx := context.Background() tx := DB.Begin() if tx.Error != nil { t.Fatalf("failed to begin transaction: %v", tx.Error) }Created: 2025-12-28 09:35 - Last Modified: 2025-11-02 14:09 - 33.7K bytes - Click Count (0)