func TestFutureCache_Persistent(t *testing.T) { … } func TestFutureCache_Ephemeral(t *testing.T) { … } // testFutureCache starts 100 goroutines concurrently, indexed by j, each // getting key j%10 from the cache. It repeats this three times, synchronizing // after each. // // This is designed to exercise both concurrent and synchronous access to the // cache. func testFutureCache(t *testing.T, ctx context.Context, c *futureCache[int, int], compute func(int) cacheFunc[int]) { … } func TestFutureCache_Retrying(t *testing.T) { … }