aboutsummaryrefslogtreecommitdiff
path: root/internal/cache/clock/invariant_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-11 11:22:47 +0000
committerGravatar Runxi Yu2026-06-11 11:22:47 +0000
commitb5fa10fd109e9118a5ad034b25305e16ebcb5d49 (patch)
tree45bf3c2309ccfb4ab4a4f9b039bd236e4ceb1304 /internal/cache/clock/invariant_test.go
parent*: Remove nolint:wrapcheck where now extra (diff)
internal/cache/clock: Rename Cache to Clock
Diffstat (limited to 'internal/cache/clock/invariant_test.go')
-rw-r--r--internal/cache/clock/invariant_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/cache/clock/invariant_test.go b/internal/cache/clock/invariant_test.go
index 2efd7ff9..04896ca1 100644
--- a/internal/cache/clock/invariant_test.go
+++ b/internal/cache/clock/invariant_test.go
@@ -79,10 +79,10 @@ func checkShard[K comparable, V any](t *testing.T, shard *shard[K, V]) {
}
// checkCache verifies every shard's invariants.
-func checkCache[K comparable, V any](t *testing.T, cache *Cache[K, V]) {
+func checkCache[K comparable, V any](t *testing.T, clock *Clock[K, V]) {
t.Helper()
- for _, shard := range cache.shards {
+ for _, shard := range clock.shards {
checkShard(t, shard)
}
}