- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testCache (0.08 sec)
-
internal/cachevalue/cache_test.go
t3, err := cache.GetWithCtx(ctx) if err != nil { t.Fatalf("expected nil err, got %v", err) } if t1.Equal(t3) { t.Fatalf("expected time to be un-equal: %s == %s", t1, t3) } } func TestCache(t *testing.T) { cache := New[time.Time]() t.Parallel() cache.InitOnce(2*time.Second, Opts{}, func(ctx context.Context) (time.Time, error) { return time.Now(), nil }, ) t1, _ := cache.Get()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 09 00:51:34 UTC 2024 - 2.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/crawler/util/FieldConfigsTest.java
assertTrue(fieldConfigs.getConfig("foo").map(FieldConfigs.Config::isCache).orElse(false)); assertFalse(fieldConfigs.getConfig("foo").map(FieldConfigs.Config::isOverwrite).orElse(false)); } public void test_cache() { final Map<String, String> params = Maps.of("foo", "cache"); FieldConfigs fieldConfigs = new FieldConfigs(params); assertTrue(fieldConfigs.getConfig("test").isEmpty());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Jul 04 06:20:49 UTC 2024 - 3.3K bytes - Viewed (0)