(t *testing.T)
| 176 | } |
| 177 | |
| 178 | func TestConstructCacheWithDefaultHasher(t *testing.T) { |
| 179 | t.Parallel() |
| 180 | |
| 181 | // given |
| 182 | cache, _ := New(context.Background(), Config{ |
| 183 | Shards: 16, |
| 184 | LifeWindow: 5 * time.Second, |
| 185 | MaxEntriesInWindow: 10, |
| 186 | MaxEntrySize: 256, |
| 187 | }) |
| 188 | |
| 189 | _, ok := cache.hash.(fnv64a) |
| 190 | assertEqual(t, true, ok) |
| 191 | } |
| 192 | |
| 193 | func TestNewBigcacheValidation(t *testing.T) { |
| 194 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…