- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 676 for COUNT (0.1 sec)
-
tests/soft_delete_test.go
t.Errorf("Should find soft deleted record with Unscoped, but got err %s", err) } count = 0 if DB.Unscoped().Model(&User{}).Where("name = ?", user.Name).Count(&count).Error != nil || count != 1 { t.Errorf("Count soft deleted record, expects: %v, count: %v", 1, count) } age = 0 if DB.Unscoped().Model(&User{}).Select("age").Where("name = ?", user.Name).Scan(&age).Error != nil || age != user.Age {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Feb 01 06:40:55 UTC 2023 - 5.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java
public void testAddOccurrences() { int originalCount = getMultiset().count(e0()); assertEquals("old count", originalCount, getMultiset().add(e0(), 2)); assertEquals("old count", originalCount + 2, getMultiset().count(e0())); } @CollectionFeature.Require(SUPPORTS_ADD) public void testAddSeveralTimes() { int originalCount = getMultiset().count(e0()); assertEquals(originalCount, getMultiset().add(e0(), 2));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 4.2K bytes - Viewed (0) -
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)) } if err := DB.Model(&User{}).Where("name = ?", user1.Name).Or("name = ?", user3.Name).Count(&count).Find(&users).Error; err != nil {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_chatty_fail.txt
# Run chatty tests. Assert on CONT lines. ! go test chatty_test.go -v # Sanity check that output occurs. stdout -count=2 'this is sub-0' stdout -count=2 'this is sub-1' stdout -count=2 'this is sub-2' stdout -count=1 'error from sub-0' stdout -count=1 'error from sub-1' stdout -count=1 'error from sub-2' # Non-parallel tests should not print CONT. ! stdout CONT -- chatty_test.go -- package chatty_test import ( "testing"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 21 18:28:05 UTC 2020 - 719 bytes - Viewed (0) -
src/cmd/go/testdata/script/toolexec.txt
go test -toolexec=$PWD/mytool stderr -count=2 '^# test/main\.test$' stderr -count=1 '^compile'${GOEXE}' TOOLEXEC_IMPORTPATH="test/main\.test"$' stderr -count=1 '^link'${GOEXE}' TOOLEXEC_IMPORTPATH="test/main\.test"$' stderr -count=1 '^# test/main \[test/main\.test\]$' stderr -count=1 '^compile'${GOEXE}' TOOLEXEC_IMPORTPATH="test/main \[test/main\.test\]"$' stderr -count=1 '^# test/main_test \[test/main\.test\]$'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 3.8K bytes - Viewed (0) -
fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
final StringBuilder buf = new StringBuilder(); buf.append("<html><head><title>Title "); buf.append(count); buf.append("</title></head><body><h1>Content "); buf.append(count); buf.append("</h1><br>"); buf.append("<a href=\"index.html\">Index</a><br>"); for (int i = 1; i <= 10; i++) { buf.append("<a href=\"file"); buf.append(count);
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 6.3K bytes - Viewed (0) -
guava/src/com/google/common/math/StatsAccumulator.java
if (values.count() == 0) { return; } merge(values.count(), values.mean(), values.sumOfSquaresOfDeltas(), values.min(), values.max()); } private void merge( long otherCount, double otherMean, double otherSumOfSquaresOfDeltas, double otherMin, double otherMax) { if (count == 0) { count = otherCount; mean = otherMean;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 12 17:02:53 UTC 2023 - 15.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 10.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/testdata/issue25459/a/a.go
package a const Always = true var Count int type FuncReturningInt func() int var PointerToConstIf FuncReturningInt func ConstIf() int { if Always { return 1 } var imdead [4]int imdead[Count] = 1 return imdead[0] } func CallConstIf() int { Count += 3 return ConstIf() } func Another() { defer func() { PointerToConstIf = ConstIf; Count += 1 }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:11 UTC 2019 - 363 bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/exception/MultipleCrawlingAccessException.java
super.printStackTrace(s); int count = 1; for (final Throwable t : throwables) { s.println("Caused " + count + ":"); t.printStackTrace(s); count++; } } @Override public void printStackTrace(final PrintWriter s) { super.printStackTrace(s); int count = 1; for (final Throwable t : throwables) {
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 1.8K bytes - Viewed (0)