MCPcopy Index your code
hub / github.com/apache/casbin / testCacheGet

Function testCacheGet

util/util_test.go:193–198  ·  view source on GitHub ↗
(t *testing.T, c *LRUCache, key string, value interface{}, ok bool)

Source from the content-addressed store, hash-verified

191}
192
193func 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
200func testCachePut(t *testing.T, c *LRUCache, key string, value interface{}) {
201 c.Put(key, value)

Callers 1

TestLRUCacheFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…