- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 503 for got4 (0.02 sec)
-
internal/s3select/jstream/decoder_test.go
} ) decoder := NewDecoder(mkReader(body), 1) for mv = range decoder.Stream() { if mv.Value != expected[counter].Value { t.Fatalf("got %v, expected: %v", mv.Value, expected[counter]) } if mv.ValueType != expected[counter].ValueType { t.Fatalf("got %v value type, expected: %v value type", mv.ValueType, expected[counter].ValueType) } counter++
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 6.6K bytes - Viewed (0) -
src/archive/tar/reader_test.go
}, }, ok: true, }} for i, v := range vectors { got := new(Header) err := mergePAX(got, v.in) if v.ok && !reflect.DeepEqual(*got, *v.want) { t.Errorf("test %d, mergePAX(...):\ngot %+v\nwant %+v", i, *got, *v.want) } if ok := err == nil; ok != v.ok { t.Errorf("test %d, mergePAX(...): got %v, want %v", i, ok, v.ok) } } } func TestParsePAX(t *testing.T) {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K 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 Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
src/bytes/reader_test.go
const data = "hello world" r := NewReader([]byte(data)) if got, want := r.Len(), 11; got != want { t.Errorf("r.Len(): got %d, want %d", got, want) } if n, err := r.Read(make([]byte, 10)); err != nil || n != 10 { t.Errorf("Read failed: read %d %v", n, err) } if got, want := r.Len(), 1; got != want { t.Errorf("r.Len(): got %d, want %d", got, want) } if n, err := r.Read(make([]byte, 1)); err != nil || n != 1 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 8K 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 Nov 03 09:35:10 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 Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 17 03:58:13 UTC 2024 - 15K bytes - Viewed (0) -
src/bytes/buffer_test.go
} } func TestWriteAppend(t *testing.T) { var got Buffer var want []byte for i := 0; i < 1000; i++ { b := got.AvailableBuffer() b = strconv.AppendInt(b, int64(i), 10) want = strconv.AppendInt(want, int64(i), 10) got.Write(b) } if !Equal(got.Bytes(), want) { t.Fatalf("Bytes() = %q, want %q", got, want) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Sep 03 20:55:15 UTC 2024 - 18.6K bytes - Viewed (0) -
schema/naming_test.go
t.Errorf("invalid index name generated, got %v", idxName) } chkName := ns.CheckerName("public.table", "name") if chkName != "chk_public_table_name" { t.Errorf("invalid checker name generated, got %v", chkName) } joinTable := ns.JoinTableName("user_languages") if joinTable != "public.user_languages" { t.Errorf("invalid join table generated, got %v", joinTable) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue May 30 02:00:48 UTC 2023 - 7K bytes - Viewed (0) -
cmd/sftp-server_test.go
if err == nil || !errors.Is(err, errAuthentication) { c.Fatalf("expected err(%s) but got (%s)", errAuthentication, err) } newSSHCon = newSSHConnMock("dillon") _, err = sshPubKeyAuth(newSSHCon, testKey) if err == nil || !errors.Is(err, errNoSuchUser) { c.Fatalf("expected err(%s) but got (%s)", errNoSuchUser, err) } } func (s *TestSuiteIAM) SFTPPublicKeyAuthentication(c *check) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 28 09:06:25 UTC 2024 - 8.3K bytes - Viewed (0) -
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 Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jul 25 21:02:50 UTC 2024 - 13.5K bytes - Viewed (0)