(t *testing.T, gc Cache, numbers int)
| 11 | } |
| 12 | |
| 13 | func testSetCache(t *testing.T, gc Cache, numbers int) { |
| 14 | for i := 0; i < numbers; i++ { |
| 15 | key := fmt.Sprintf("Key-%d", i) |
| 16 | value, err := loader(key) |
| 17 | if err != nil { |
| 18 | t.Error(err) |
| 19 | return |
| 20 | } |
| 21 | gc.Set(key, value) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | func testGetCache(t *testing.T, gc Cache, numbers int) { |
| 26 | for i := 0; i < numbers; i++ { |
no test coverage detected
searching dependent graphs…