(t *testing.T, c *LRUCache, key string, value interface{})
| 198 | } |
| 199 | |
| 200 | func testCachePut(t *testing.T, c *LRUCache, key string, value interface{}) { |
| 201 | c.Put(key, value) |
| 202 | v, o := c.Get(key) |
| 203 | if v != value || o != true { |
| 204 | t.Errorf("Put(%s, %s): didn't add value", key, value) |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | func testCacheEqual(t *testing.T, c *LRUCache, values []int) { |
| 209 | cacheValues := []int{} |
no test coverage detected
searching dependent graphs…