(t *testing.T, c *LRUCache, key string, value interface{}, ok bool)
| 191 | } |
| 192 | |
| 193 | func testCacheGet(t *testing.T, c *LRUCache, key string, value interface{}, ok bool) { |
| 194 | v, o := c.Get(key) |
| 195 | if v != value || o != ok { |
| 196 | t.Errorf("Get(%s): (%s, %t) supposed to be (%s, %t)", key, v, o, value, ok) |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | func testCachePut(t *testing.T, c *LRUCache, key string, value interface{}) { |
| 201 | c.Put(key, value) |
no test coverage detected
searching dependent graphs…