(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestCounter_GC(t *testing.T) { |
| 46 | if !testutils.IsSingleTesting() { |
| 47 | return |
| 48 | } |
| 49 | |
| 50 | var counter = counters.NewCounter[uint32]() |
| 51 | counter.Increase(1, 20) |
| 52 | time.Sleep(1 * time.Second) |
| 53 | counter.Increase(1, 20) |
| 54 | time.Sleep(1 * time.Second) |
| 55 | counter.Increase(1, 20) |
| 56 | counter.GC() |
| 57 | t.Log(counter.Get(1)) |
| 58 | } |
| 59 | |
| 60 | func TestCounter_GC2(t *testing.T) { |
| 61 | if !testutils.IsSingleTesting() { |
nothing calls this directly
no test coverage detected