- Sort Score
- Result 10 results
- Languages All
Results 801 - 810 of 929 for flen (0.04 sec)
-
tests/postgres_test.go
if result.Error != nil { t.Errorf("creating second thing: %v", result.Error) } var things []Thing if err := DB.Find(&things).Error; err != nil { t.Errorf("Failed, got error: %v", err) } if len(things) > 1 { t.Errorf("expected 1 thing got more") } } type CompanyNew struct { ID int Name int } func TestAlterColumnDataType(t *testing.T) { DB.AutoMigrate(Company{})
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Oct 08 09:16:32 UTC 2022 - 6.4K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Doubles.java
return ((DoubleArrayAsList) collection).toDoubleArray(); } Object[] boxedArray = collection.toArray(); int len = boxedArray.length; double[] array = new double[len]; for (int i = 0; i < len; i++) { // checkNotNull for GWT (do not optimize) array[i] = ((Number) checkNotNull(boxedArray[i])).doubleValue(); } return array; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 28.1K bytes - Viewed (0) -
cmd/object-handlers.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 05 05:16:15 UTC 2024 - 117.4K bytes - Viewed (0) -
internal/ioutil/ioutil_test.go
"io" "os" "strings" "testing" "time" ) type sleepWriter struct { timeout time.Duration } func (w *sleepWriter) Write(p []byte) (n int, err error) { time.Sleep(w.timeout) return len(p), nil } func (w *sleepWriter) Close() error { return nil } func TestDeadlineWorker(t *testing.T) { work := NewDeadlineWorker(500 * time.Millisecond) err := work.Run(func() error {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/site-replication-metrics.go
} sr.M[dID] = srs } func (sr *SRStats) get() map[string]SRMetric { epMap := globalBucketTargetSys.healthStats() sr.lock.RLock() defer sr.lock.RUnlock() m := make(map[string]SRMetric, len(sr.M)) for dID, v := range sr.M { t := newXferStats() mx := make(map[RMetricName]XferStats) if v.XferRateLrg != nil { mx[Large] = *v.XferRateLrg.Clone() m := t.merge(*v.XferRateLrg) t = &m
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 8.2K bytes - Viewed (0) -
cmd/metacache.go
func baseDirFromPrefix(prefix string) string { b := path.Dir(prefix) if b == "." || b == "./" || b == "/" { b = "" } if !strings.Contains(prefix, slashSeparator) { b = "" } if len(b) > 0 && !strings.HasSuffix(b, slashSeparator) { b += slashSeparator } return b } // update cache with new status. // The updates are conditional so multiple callers can update with different states.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 16:23:16 UTC 2024 - 6K bytes - Viewed (0) -
logger/sql_test.go
"encoding/json" "fmt" "regexp" "strings" "testing" "github.com/jinzhu/now" "gorm.io/gorm/logger" ) type JSON json.RawMessage func (j JSON) Value() (driver.Value, error) { if len(j) == 0 { return nil, nil } return json.RawMessage(j).MarshalJSON() } type ExampleStruct struct { Name string Val string } func (s ExampleStruct) Value() (driver.Value, error) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 8.4K bytes - Viewed (0) -
tests/migrate_test.go
} typ := reflect.Indirect(reflect.ValueOf(&UserMigrateColumn2{})).Type() numField := typ.NumField() if numField != len(columnTypes) { t.Fatalf("column's number not match struct and ddl, %d != %d", numField, len(columnTypes)) } namer := schema.NamingStrategy{} for i := 0; i < numField; i++ { expectName := namer.ColumnName("", typ.Field(i).Name)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0) -
api/go1.14.txt
pkg syscall (freebsd-arm64), type RawSockaddrDatalink struct, Nlen uint8 pkg syscall (freebsd-arm64), type RawSockaddrDatalink struct, Slen uint8 pkg syscall (freebsd-arm64), type RawSockaddrDatalink struct, Type uint8 pkg syscall (freebsd-arm64), type RawSockaddrInet4 struct, Family uint8 pkg syscall (freebsd-arm64), type RawSockaddrInet4 struct, Len uint8
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 508.9K bytes - Viewed (0) -
api/go1.16.txt
pkg syscall (darwin-arm64), type RawSockaddrDatalink struct, Nlen uint8 pkg syscall (darwin-arm64), type RawSockaddrDatalink struct, Slen uint8 pkg syscall (darwin-arm64), type RawSockaddrDatalink struct, Type uint8 pkg syscall (darwin-arm64), type RawSockaddrInet4 struct, Family uint8 pkg syscall (darwin-arm64), type RawSockaddrInet4 struct, Len uint8
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Dec 02 16:30:41 UTC 2022 - 479.2K bytes - Viewed (0)