- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 413 for got4 (0.12 sec)
-
cmd/erasure-metadata_test.go
t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) { if got := listObjectParities(test.metaArr, test.errs); !slices.Equal(got, test.parities) { t.Fatalf("Expected parities %v but got %v", test.parities, got) } if got := commonParity(test.parities, len(test.metaArr)/2); got != test.parity { t.Fatalf("Expected common parity %v but got %v", test.parity, got) } }) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Jul 25 21:02:50 UTC 2024 - 13.5K bytes - Viewed (0) -
istioctl/pkg/tag/tag_test.go
if tc.error == "" && err != nil { t.Fatalf("expected no error, got %v", err) } if tc.error != "" { if err == nil { t.Fatalf("expected error to include \"%s\" but got none", tc.error) } if !strings.Contains(err.Error(), tc.error) { t.Fatalf("expected \"%s\" in error, got %v", tc.error, err) } } commandOutput := out.String()
Registered: Wed Oct 30 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 8.5K bytes - Viewed (0) -
cmd/metacache-stream_test.go
if gotObj.name != want { t.Errorf("entry %d, want %q, got %q", i, want, gotObj.name) } } } func Test_metacacheReader_peek(t *testing.T) { r := loadMetacacheSample(t) defer r.Close() for i, want := range loadMetacacheSampleNames { got, err := r.peek() if err == io.EOF { break } if err != nil { t.Fatal(err) } if got.name != want {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 15K bytes - Viewed (0) -
tests/associations_has_one_test.go
t.Fatalf("Error happened when delete account, got %v", err) } AssertAssociationCount(t, user2, "Account", 1, "after delete non-existing data") if err := DB.Model(&user2).Association("Account").Delete(&account2); err != nil { t.Fatalf("Error happened when delete Account, got %v", err) } AssertAssociationCount(t, user2, "Account", 0, "after delete") // Prepare Data for Clear
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 7.1K bytes - Viewed (0) -
tests/sql_builder_test.go
row := DB.Table("users").Where("name = ?", user2.Name).Select("age").Row() var age int64 if err := row.Scan(&age); err != nil { t.Fatalf("Failed to scan age, got %v", err) } if age != 10 { t.Errorf("Scan with Row, age expects: %v, got %v", user2.Age, age) } table := "gorm.users" if DB.Dialector.Name() != "mysql" || isTiDB() { table = "users" // other databases doesn't support select with `database.table`
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Fri Jan 12 08:42:21 UTC 2024 - 16.7K bytes - Viewed (0) -
cmd/net_test.go
switch { case testCase.expectedErr == nil: if err != nil { t.Fatalf("error: expected = <nil>, got = %v", err) } case err == nil: t.Fatalf("error: expected = %v, got = <nil>", testCase.expectedErr) case testCase.expectedErr.Error() != err.Error(): t.Fatalf("error: expected = %v, got = %v", testCase.expectedErr, err) } if testCase.expectedIPList != nil { var found bool
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/preload_test.go
t.Errorf("No account should found for user %v but got %v", idx+2, user.Account.Number) } } CheckUser(t, users2[0], users[0]) var users3 []User if err := DB.Preload("Account", func(tx *gorm.DB) *gorm.DB { return tx.Table("accounts AS a").Select("a.*") }).Find(&users3, "id IN ?", userIDs).Error; err != nil { t.Errorf("failed to query, got error %v", err) } sort.Slice(users3, func(i, j int) bool {
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Wed Jun 12 10:00:47 UTC 2024 - 15.9K bytes - Viewed (0) -
tests/joins_test.go
var users2 []User if err := DB.Joins("Company").Joins("Manager").Joins("Account").Find(&users2, "users.id IN ?", userIDs).Error; err != nil { t.Fatalf("Failed to load with joins, got error: %v", err) } else if len(users2) != len(users) { t.Fatalf("Failed to load join users, got: %v, expect: %v", len(users2), len(users)) } sort.Slice(users2, func(i, j int) bool { return users2[i].ID > users2[j].ID })
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Mon Jun 17 03:58:13 UTC 2024 - 15K bytes - Viewed (0) -
internal/event/name_test.go
expectErr := (err != nil) if expectErr != testCase.expectErr { t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr) } if !testCase.expectErr { if !reflect.DeepEqual(data, testCase.expectedData) { t.Fatalf("test %v: data: expected: %v, got: %v", i+1, string(testCase.expectedData), string(data)) } } } } func TestNameUnmarshalXML(t *testing.T) {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 7.4K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_test.go
} if rb.Length() != 64 { t.Fatalf("expect len 64 bytes but got %d. r.w=%d, r.r=%d", rb.Length(), rb.w, rb.r) } if rb.Free() != 0 { t.Fatalf("expect free 0 bytes but got %d. r.w=%d, r.r=%d", rb.Free(), rb.w, rb.r) } // check empty or full if rb.IsEmpty() { t.Fatalf("expect IsEmpty is false but got true") } if !rb.IsFull() { t.Fatalf("expect IsFull is true but got false") }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 26.8K bytes - Viewed (0)