- Sort Score
- Result 10 results
- Languages All
Results 671 - 680 of 1,123 for Nil (0.03 sec)
-
internal/event/target/nats_contrib_test.go
Enable: true, Address: xnet.Host{ Name: "localhost", Port: (xnet.Port(opts.Port)), IsPortSet: true, }, Subject: "test", } con, err := clientConfig.connectNats() if err != nil { t.Errorf("Could not connect to nats: %v", err) } defer con.Close() } func TestNatsConnUserPass(t *testing.T) { opts := natsserver.DefaultTestOptions opts.Port = 14223 opts.Username = "testminio"
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 2.3K bytes - Viewed (0) -
cmd/kms-handlers_test.go
} if accessKey == "" && secretKey == "" { accessKey = globalActiveCred.AccessKey secretKey = globalActiveCred.SecretKey } req, err := newTestSignedRequestV4(method, path, 0, nil, accessKey, secretKey, nil) if err != nil { t.Fatal(err) } return req } // setupKMSUser is a test helper that creates a new user with the provided access key and secret key // and applies the given policy to the user.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 22.3K bytes - Viewed (0) -
cmd/streaming-signature-v4_test.go
{ bufio.NewReaderSize(readers[0], 16), errLineTooLong, nil, nil, }, // Test - 2 - unexpected end of the reader. { bufio.NewReader(readers[1]), io.ErrUnexpectedEOF, nil, nil, }, // Test - 3 - line too long bigger than 4k+1 { bufio.NewReader(readers[2]), errLineTooLong, nil, nil, }, // Test - 4 - parse the chunk reader properly. {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 5.7K bytes - Viewed (0) -
tests/delete_test.go
if err := DB.Create(&users).Error; err != nil { t.Errorf("errors happened when create: %v", err) } for _, user := range users { if user.ID == 0 { t.Fatalf("user's primary key should has value after create, got : %v", user.ID) } } if res := DB.Delete(&users[1]); res.Error != nil || res.RowsAffected != 1 {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Oct 10 07:03:34 UTC 2023 - 9.4K bytes - Viewed (0) -
internal/grid/grid_test.go
} if resp != nil { t.Errorf("want nil, got %q", resp) } h2.PutResponse(resp) t.Log("Roundtrip:", time.Since(start)) } func TestSingleRoundtripGenericsRecycle(t *testing.T) { defer testlogger.T.SetLogTB(t)() errFatal := func(err error) { t.Helper() if err != nil { t.Fatal(err) } } grid, err := SetupTestGrid(2)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 36.4K bytes - Viewed (0) -
schema/callbacks_test.go
) type UserWithCallback struct{} func (UserWithCallback) BeforeSave(*gorm.DB) error { return nil } func (UserWithCallback) AfterCreate(*gorm.DB) error { return nil } func TestCallback(t *testing.T) { user, err := schema.Parse(&UserWithCallback{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil { t.Fatalf("failed to parse user with callback, got error %v", err) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 939 bytes - Viewed (0) -
clause/expression_test.go
Result: "`column-name` = ?", }, { Expressions: []clause.Expression{ clause.Eq{Column: column, Value: nil}, clause.Eq{Column: column, Value: (*string)(nil)}, clause.Eq{Column: column, Value: (*int)(nil)}, clause.Eq{Column: column, Value: (*bool)(nil)}, clause.Eq{Column: column, Value: (interface{})(nil)}, clause.Eq{Column: column, Value: sql.NullString{String: "", Valid: false}}, },
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 10 05:34:33 UTC 2023 - 8.4K bytes - Viewed (0) -
internal/auth/credentials_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Mar 01 21:09:42 UTC 2024 - 5.4K bytes - Viewed (0) -
internal/bucket/lifecycle/transition_test.go
</NoncurrentVersionTransition>`, err: nil, }, { input: `<NoncurrentVersionTransition> <Days>1</Days> </NoncurrentVersionTransition>`, err: errXMLNotWellFormed, }, } for i, tc := range ntrTests { var ntr NoncurrentVersionTransition err := xml.Unmarshal([]byte(tc.input), &ntr) if err != nil { t.Fatalf("%d: xml unmarshal failed with %v", i+1, err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 01 18:58:17 UTC 2021 - 2.3K bytes - Viewed (0) -
tests/scan_test.go
Find(&personAddressInfoList).Error; err != nil { t.Errorf("Failed to run join query, got error: %v", err) } personMatched := false addressMatched := false for _, info := range personAddressInfoList { if info.Person == nil { t.Fatalf("Failed, expected not nil, got person nil") } if info.Address == nil { t.Fatalf("Failed, expected not nil, got address nil") } if info.Person.ID == person1.ID {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:57:36 UTC 2024 - 10.9K bytes - Viewed (0)