MCPcopy Create free account
hub / github.com/devfeel/dotweb / TestRuntimeCache_GetString

Function TestRuntimeCache_GetString

cache/runtime/cache_runtime_test.go:70–74  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

68}
69
70func TestRuntimeCache_GetString(t *testing.T) {
71 testRuntimeCache(t, TESTCacheValue, func(cache *RuntimeCache, key string) (interface{}, error) {
72 return cache.GetString(key)
73 })
74}
75
76func testRuntimeCache(t *testing.T, insertValue interface{}, f func(cache *RuntimeCache, key string) (interface{}, error)) {
77 cache := NewRuntimeCache()

Callers

nothing calls this directly

Calls 2

testRuntimeCacheFunction · 0.85
GetStringMethod · 0.65

Tested by

no test coverage detected