- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,665 for count1 (0.19 sec)
-
tests/count_test.go
t.Errorf(fmt.Sprintf("Count should work, but got err %v", err)) } if count != int64(len(users)) { t.Errorf("Count() method should get correct value, expect: %v, got %v", count, len(users)) } DB.Model(&User{}).Where("name = ?", user1.Name).Count(&count1).Or("name in ?", []string{user2.Name, user3.Name}).Count(&count2) if count1 != 1 || count2 != 3 {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 6.9K bytes - Viewed (0) -
tests/main_test.go
t.Errorf("Should got error with invalid SQL") } var count1, count2 int64 DB.Model(&User{}).Count(&count1) if count1 <= 0 { t.Errorf("Should find some users") } if DB.Where("name = ?", "jinzhu; delete * from users").First(&User{}).Error == nil { t.Errorf("Should got error with invalid SQL") } DB.Model(&User{}).Count(&count2) if count1 != count2 { t.Errorf("No user should not be deleted by invalid SQL") }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 24 01:31:58 UTC 2022 - 1.4K bytes - Viewed (0) -
src/runtime/stack_test.go
func count4(n int) int { return 1 + count5(n-1) } func count5(n int) int { return 1 + count6(n-1) } func count6(n int) int { return 1 + count7(n-1) } func count7(n int) int { return 1 + count8(n-1) } func count8(n int) int { return 1 + count9(n-1) } func count9(n int) int { return 1 + count10(n-1) } func count10(n int) int { return 1 + count11(n-1) } func count11(n int) int { return 1 + count12(n-1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 23.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java
return multiset(ImmutableMap.of(value1, count1, value2, count2)); } private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) { ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder(); for (Entry<T, Integer> entry : counts.entrySet()) { builder.addCopies(entry.getKey(), entry.getValue()); } return builder.build(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 09 22:57:07 UTC 2022 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java
return multiset(ImmutableMap.of(value1, count1, value2, count2)); } private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) { ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder(); for (Entry<T, Integer> entry : counts.entrySet()) { builder.addCopies(entry.getKey(), entry.getValue()); } return builder.build(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 09 22:57:07 UTC 2022 - 8.2K bytes - Viewed (0) -
docs/bucket/replication/setup_ilm_expiry_replication.sh
./mc ilm edit --id "${id}" --expire-days "100" sitea/bucket sleep 30s count1=$(./mc ilm rule list sitea/bucket --json | jq '.config.Rules[0].Expiration.Days') count2=$(./mc ilm rule list siteb/bucket --json | jq '.config.Rules[0].Expiration.Days') if [ $count1 -ne 100 ]; then echo "BUG: Expiration days not changed on 'sitea'" exit 1 fi if [ $count2 -ne 100 ]; then echo "BUG: Modified ILM expiry rule not replicated to 'siteb'"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat May 18 18:19:01 UTC 2024 - 12.8K bytes - Viewed (0) -
docs/site-replication/run-replication-with-checksum-header.sh
echo "Objects from replicated site" ./mc ls minio2/test-bucket --insecure count1=$(./mc ls minio2/test-bucket/obj --insecure | wc -l) if [ "${count1}" -ne 1 ]; then echo "BUG: object minio1/test-bucket/obj not replicated" exit_1 fi count2=$(./mc ls minio2/test-bucket/mpartobj --insecure | wc -l) if [ "${count2}" -ne 1 ]; then echo "BUG: object minio1/test-bucket/mpartobj not replicated" exit_1 fi
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 08 16:24:15 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/site-replication/run-ssec-object-replication-with-compression.sh
./mc ls minio1/test-bucket --insecure count1=$(./mc ls minio1/test-bucket/plainfile --insecure | wc -l) if [ "${count1}" -ne 1 ]; then echo "BUG: object minio1/test-bucket/plainfile not found" exit_1 fi count2=$(./mc ls minio1/test-bucket/encrypted --insecure | wc -l) if [ "${count2}" -ne 1 ]; then echo "BUG: object minio1/test-bucket/encrypted not found" exit_1 fi
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 8.2K bytes - Viewed (0) -
docs/site-replication/run-ssec-object-replication.sh
./mc ls minio1/test-bucket --insecure count1=$(./mc ls minio1/test-bucket/plainfile --insecure | wc -l) if [ "${count1}" -ne 1 ]; then echo "BUG: object minio1/test-bucket/plainfile not found" exit_1 fi count2=$(./mc ls minio1/test-bucket/encrypted --insecure | wc -l) if [ "${count2}" -ne 1 ]; then echo "BUG: object minio1/test-bucket/encrypted not found" exit_1 fi
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat May 18 18:19:01 UTC 2024 - 9.8K bytes - Viewed (0) -
docs/site-replication/run-sse-kms-object-replication.sh
./mc ls minio1/test-bucket --insecure count1=$(./mc ls minio1/test-bucket/encrypted --insecure | wc -l) if [ "${count1}" -ne 1 ]; then echo "BUG: object minio1/test-bucket/encrypted not found" exit_1 fi count2=$(./mc ls minio1/test-bucket/mpartobj --insecure | wc -l) if [ "${count2}" -ne 1 ]; then echo "BUG: object minio1/test-bucket/mpartobj not found" exit_1 fi
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat May 18 18:19:01 UTC 2024 - 10.1K bytes - Viewed (0)