- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestUpdates (0.04 sec)
-
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
})); assertThat(cache.getIfPresent(key)).isEqualTo("1"); assertThat(cache.asMap().computeIfPresent(key, (k, v) -> "2")).isEqualTo("2"); } public void testUpdates() { cache.put(key, "1"); // simultaneous update for same key, some null, some non-null doParallelCacheOp( count, n -> {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 7K 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 Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 30.4K bytes - Viewed (0)