(b *testing.B)
| 1670 | } |
| 1671 | |
| 1672 | func BenchmarkIncrementInt(b *testing.B) { |
| 1673 | b.StopTimer() |
| 1674 | tc := New(DefaultExpiration, 0) |
| 1675 | tc.Set("foo", 0, DefaultExpiration) |
| 1676 | b.StartTimer() |
| 1677 | for i := 0; i < b.N; i++ { |
| 1678 | tc.IncrementInt("foo", 1) |
| 1679 | } |
| 1680 | } |
| 1681 | |
| 1682 | func BenchmarkDeleteExpiredLoop(b *testing.B) { |
| 1683 | b.StopTimer() |
nothing calls this directly
no test coverage detected