MCPcopy Create free account
hub / github.com/NCAR/wrf-python / run

Method run

test/cachetest.py:24–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 super(TestThread, self).__init__()
23
24 def run(self):
25 for i in range(get_cache_size() + 10):
26 key = "A" + str(i)
27 cache_item(key, "test", i * self.num)
28
29 item = get_cached_item(key, "test")
30
31 if item != i * self.num:
32 raise RuntimeError("cache is bogus")
33
34 cache = OrderedDict(_get_cache())
35
36 self.q.put(cache)
37
38
39class CacheTest(ut.TestCase):

Callers

nothing calls this directly

Calls 4

get_cache_sizeFunction · 0.90
cache_itemFunction · 0.90
get_cached_itemFunction · 0.90
_get_cacheFunction · 0.90

Tested by

no test coverage detected