- Sort Score
- Result 10 results
- Languages All
Results 391 - 400 of 1,524 for Var (0.02 sec)
-
tests/joins_table_test.go
t.Fatalf("Should found one address") } var addresses2 []Address if err := DB.Model(&person).Association("Addresses").Find(&addresses2); err != nil || len(addresses2) != 1 { t.Fatalf("Failed to find address, got error %v, length: %v", err, len(addresses2)) } if DB.Model(&person).Association("Addresses").Count() != 1 { t.Fatalf("Should found one address") } var addresses3 []Address
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Sep 10 13:46:18 UTC 2020 - 3.5K bytes - Viewed (1) -
tests/distinct_test.go
if err := DB.Create(&users).Error; err != nil { t.Fatalf("errors happened when create users: %v", err) } var names []string DB.Table("users").Where("name like ?", "distinct%").Order("name").Pluck("name", &names) AssertEqual(t, names, []string{"distinct", "distinct", "distinct", "distinct-2", "distinct-3"}) var names1 []string DB.Model(&User{}).Where("name like ?", "distinct%").Distinct().Order("name").Pluck("Name", &names1)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 2.5K bytes - Viewed (0) -
cmd/admin-handlers_test.go
func TestTopLockEntries(t *testing.T) { locksHeld := make(map[string][]lockRequesterInfo) var owners []string for i := 0; i < 4; i++ { owners = append(owners, fmt.Sprintf("node-%d", i)) } // Simulate DeleteObjects of 10 objects in a single request. i.e same lock // request UID, but 10 different resource names associated with it. var lris []lockRequesterInfo uuid := mustGetUUID() for i := 0; i < 10; i++ {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 24 10:24:01 UTC 2024 - 13.9K bytes - Viewed (0) -
cmd/ftp-server-driver.go
} func (m *minioFileInfo) Sys() interface{} { return nil } //msgp:ignore ftpMetrics type ftpMetrics struct{} var globalFtpMetrics ftpMetrics func ftpTrace(s *ftp.Context, startTime time.Time, source, objPath string, err error, sz int64) madmin.TraceInfo { var errStr string if err != nil { errStr = err.Error() } return madmin.TraceInfo{ TraceType: madmin.TraceFTP,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 14K bytes - Viewed (0) -
cmd/batch-expire_gen_test.go
v := BatchJobExpire{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len())) en := msgp.NewWriter(msgp.Nowhere) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.EncodeMsg(en) } en.Flush() } func BenchmarkDecodeBatchJobExpire(b *testing.B) { v := BatchJobExpire{} var buf bytes.Buffer msgp.Encode(&buf, &v)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 02 10:51:33 UTC 2023 - 6.9K bytes - Viewed (0) -
cmd/last-minute_gen_test.go
} func BenchmarkEncodeAccElem(b *testing.B) { v := AccElem{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len())) en := msgp.NewWriter(msgp.Nowhere) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.EncodeMsg(en) } en.Flush() } func BenchmarkDecodeAccElem(b *testing.B) { v := AccElem{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len()))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 05 21:45:49 UTC 2022 - 6.8K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt
import java.io.File import java.io.StringWriter abstract class AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest { @TempDir lateinit var projectDir: File lateinit var firstAcceptedApiChangesFile: File lateinit var secondAcceptedApiChangesFile: File @BeforeEach fun setUp() { projectDir.resolve("src").resolve("changes").resolve("accepted-changes").mkdirs()
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 6K bytes - Viewed (0) -
internal/config/identity/plugin/config.go
EnvIdentityPluginAuthToken = "MINIO_IDENTITY_PLUGIN_AUTH_TOKEN" EnvIdentityPluginRolePolicy = "MINIO_IDENTITY_PLUGIN_ROLE_POLICY" EnvIdentityPluginRoleID = "MINIO_IDENTITY_PLUGIN_ROLE_ID" ) var ( // DefaultKVS - default config for AuthN plugin config DefaultKVS = config.KVS{ config.KV{ Key: URL, Value: "", }, config.KV{ Key: AuthToken, Value: "", }, config.KV{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 13.3K bytes - Viewed (0) -
cmd/storage-rest-server.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 45.7K bytes - Viewed (0) -
src/archive/tar/reader_test.go
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0)