diff --git a/lrucache/cache_test.go b/lrucache/cache_test.go index c0dddb6..84b377e 100644 --- a/lrucache/cache_test.go +++ b/lrucache/cache_test.go @@ -132,6 +132,11 @@ func TestCache_eviction(t *testing.T) { } } +func TestCache_GCPercent(t *testing.T) { + var p = debug.SetGCPercent(100) + require.Equal(t, p, 100) +} + func BenchmarkCache_Set(b *testing.B) { for _, tc := range []struct { name string