- Sort Score
- Num 10 results
- Language All
Results 411 - 420 of 743 for testInt (0.03 seconds)
-
internal/grid/debug.go
debugBlockInboundMessages ) // TestGrid contains a grid of servers for testing purposes. type TestGrid struct { Servers []*httptest.Server Listeners []net.Listener Managers []*Manager Mux []*mux.Router Hosts []string cleanupOnce sync.Once cancel context.CancelFunc } // SetupTestGrid creates a new grid for testing purposes. // Select the number of hosts to create.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 4.4K bytes - Click Count (0) -
tests/gaussdb_test.go
package tests_test import ( "testing" "time" "github.com/google/uuid" "github.com/lib/pq" "gorm.io/gorm" "gorm.io/gorm/clause" . "gorm.io/gorm/utils/tests" ) func TestGaussDBReturningIDWhichHasStringType(t *testing.T) { t.Skipf("This test case skipped, because of gaussdb not support pgcrypto extension and gen_random_uuid() function") if DB.Dialector.Name() != "gaussdb" { t.Skip() } type Yasuo struct {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 6.6K bytes - Click Count (0) -
clause/limit_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestLimit(t *testing.T) { limit0 := 0 limit10 := 10 limit50 := 50 limitNeg10 := -10 results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}, clause.Limit{ Limit: &limit10, Offset: 20, }},
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Feb 06 02:54:40 GMT 2024 - 2.3K bytes - Click Count (0) -
internal/event/target/nsq_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package target import ( "testing" xnet "github.com/minio/pkg/v3/net" ) func TestNSQArgs_Validate(t *testing.T) { type fields struct { Enable bool NSQDAddress xnet.Host Topic string TLS struct { Enable bool SkipVerify bool } }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 2.2K bytes - Click Count (0) -
cmd/data-usage_test.go
package cmd import ( "bytes" "context" "encoding/json" "fmt" "os" "path" "path/filepath" "testing" "time" "github.com/minio/minio/internal/cachevalue" ) type usageTestFile struct { name string size int } func TestDataUsageUpdate(t *testing.T) { base := t.TempDir() const bucket = "bucket" files := []usageTestFile{ {name: "rootfile", size: 10000},
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 14.7K bytes - Click Count (0) -
tests/update_has_many_test.go
package tests_test import ( "testing" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) func TestUpdateHasManyAssociations(t *testing.T) { user := *GetUser("update-has-many", Config{}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } user.Pets = []*Pet{{Name: "pet1"}, {Name: "pet2"}} if err := DB.Save(&user).Error; err != nil {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 2K bytes - Click Count (0) -
src/cmd/asm/internal/asm/line_test.go
// license that can be found in the LICENSE file. package asm import ( "cmd/asm/internal/lex" "strings" "testing" ) type badInstTest struct { input, error string } func TestAMD64BadInstParser(t *testing.T) { testBadInstParser(t, "amd64", []badInstTest{ // Test AVX512 suffixes. {"VADDPD.A X0, X1, X2", `unknown suffix "A"`},
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 1.9K bytes - Click Count (0) -
internal/s3select/select_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package s3select import ( "bytes" "encoding/xml" "fmt" "io" "net/http" "os" "reflect" "strings" "testing" "github.com/klauspost/cpuid/v2" "github.com/minio/minio-go/v7" "github.com/minio/simdjson-go" ) func newStringRSC(s string) io.ReadSeekCloser { return newBytesRSC([]byte(s)) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 76.1K bytes - Click Count (0) -
internal/ringbuffer/ring_buffer_test.go
"hash/crc32" "io" "math/rand" "os" "runtime" "strings" "sync" "testing" "time" ) func TestRingBuffer_interface(t *testing.T) { rb := New(1) var _ io.Writer = rb var _ io.Reader = rb // var _ io.StringWriter = rb var _ io.ByteReader = rb var _ io.ByteWriter = rb } func TestRingBuffer_Write(t *testing.T) { rb := New(64) // check empty or full if !rb.IsEmpty() {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 26.7K bytes - Click Count (0) -
cmd/xl-storage-errors_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "os" "runtime" "syscall" "testing" ) func TestSysErrors(t *testing.T) { pathErr := &os.PathError{Err: syscall.ENAMETOOLONG} ok := isSysErrTooLong(pathErr) if !ok { t.Fatalf("Unexpected error expecting %s", syscall.ENAMETOOLONG) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 1.7K bytes - Click Count (0)