- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestUpdates (1.21 sec)
-
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
// ensure no zombie entry remains cache.asMap().computeIfPresent(1, (key, value) -> null); assertThat(notifications).hasSize(1); CacheTesting.checkEmpty(cache); } public void testUpdates() { cache.put(key, "1"); // simultaneous update for same key, some null, some non-null doParallelCacheOp( count, n -> {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 6.4K bytes - Viewed (0) -
tests/update_test.go
} if rowsAffected := DB.Model(users).Where("age > 0").Update("name", "jinzhu").RowsAffected; rowsAffected != 3 { t.Errorf("should only update one record, but got %v", rowsAffected) } } func TestUpdates(t *testing.T) { users := []*User{ GetUser("updates_01", Config{}), GetUser("updates_02", Config{}), } DB.Create(&users) lastUpdatedAt := users[0].UpdatedAt // update with map
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 30.4K bytes - Viewed (0)