- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,181 for first (0.02 sec)
-
tests/query_test.go
if err := DB.Create(&users).Error; err != nil { t.Fatalf("errors happened when create users: %v", err) } t.Run("First", func(t *testing.T) { var first User if err := DB.Where("name = ?", "find").First(&first).Error; err != nil { t.Errorf("errors happened when query first: %v", err) } else { CheckUser(t, first, users[0]) } }) t.Run("Last", func(t *testing.T) { var last User
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Jul 22 06:21:04 UTC 2025 - 51K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
assertTrue(it.hasNext()); FileEntry e2 = it.next(); // Assert assertNotNull(e1); assertNotNull(e2); assertEquals("first", e1.getName()); assertEquals(acceptedName, e2.getName(), "Should return the first name accepted by filter"); // Verify filter interactions: not called for '.' and '..', called for others verify(nameFilter, never()).accept(parent, ".");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
tests/customize_field_test.go
t.Error("There should be one record be affected when create record") } var cc1 CustomizeColumn DB.First(&cc1, "mapped_name = ?", "foo") if cc1.Name != expected { t.Errorf("Failed to query CustomizeColumn") } cc.Name = "bar" DB.Save(&cc) var cc2 CustomizeColumn DB.First(&cc2, "mapped_id = ?", 666) if cc2.Name != "bar" { t.Errorf("Failed to query CustomizeColumn") } }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Sep 11 09:33:31 UTC 2020 - 6.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/Comparators.java
* as equal, the first is returned. * * <p>The recommended solution for finding the {@code maximum} of some values depends on the type * of your data and the number of elements you have. Read more in the Guava User Guide article on * <a href="https://github.com/google/guava/wiki/CollectionUtilitiesExplained#comparators">{@code * Comparators}</a>. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java
// Verify little-endian encoding assertEquals((byte) 0xA1, encoded[0], "First byte of first character"); assertEquals((byte) 0x00, encoded[1], "Second byte of first character"); assertEquals((byte) 0xA2, encoded[2], "First byte of second character"); assertEquals((byte) 0x00, encoded[3], "Second byte of second character"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java
@ParametricNullness protected abstract E get(int index); /** * Constructs an iterator across a sequence of the given size whose initial position is 0. That * is, the first call to {@link #next()} will return the first element (or throw {@link * NoSuchElementException} if {@code size} is zero). * * @throws IllegalArgumentException if {@code size} is negative */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/RenderDataUtilTest.java
// List with first element NOT being Entity List<Object> mixedList = new ArrayList<>(); mixedList.add("string first"); mixedList.add(entity); RenderDataUtil.register(data, "mixed", mixedList); Object result = data.getDataMap().get("mixed"); assertEquals(mixedList, result); // Should be registered as-is since first element is not Entity }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 9K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/Gradleception.kt
1. Build a Gradle distribution with a fixed timestamp and hash it, but never use this distribution. 2. Build a Gradle distribution with this hash as a version + fixed timestamp -> dogfood-first 3. Build a Gradle distribution using dogfood-first with this hash as a version + fixed timestamp different from the one above -> dogfood-second 4. Use dogfood-second to run a Gradle build which runs tests. */
Registered: Wed Sep 10 11:36:15 UTC 2025 - Last Modified: Thu May 01 14:55:05 UTC 2025 - 7.1K bytes - Viewed (0) -
tests/gaussdb_test.go
} if yasuo.ID == "" { t.Fatal("should be able to has ID, but got zero value") } var result Yasuo if err := DB.First(&result, "id = ?", yasuo.ID).Error; err != nil || yasuo.Name != "jinzhu" { t.Errorf("No error should happen, but got %v", err) } if err := DB.Where("id = $1", yasuo.ID).First(&Yasuo{}).Error; err != nil || yasuo.Name != "jinzhu" { t.Errorf("No error should happen, but got %v", err) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 6.6K bytes - Viewed (0) -
tests/serializer_test.go
if err := DB.Where("roles2 IS NULL AND roles3 = ?", "").First(&result, data.ID).Error; err != nil { t.Fatalf("failed to query data, got error %v", err) } AssertEqual(t, result, data) if err := DB.Model(&result).Update("roles", "").Error; err != nil { t.Fatalf("failed to update data's roles, got error %v", err) } if err := DB.First(&result, data.ID).Error; err != nil {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 7.6K bytes - Viewed (0)