MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / assertCacheEmpty

Method assertCacheEmpty

test/test_sanity.py:401–404  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

399 self.assertCacheEmpty()
400
401 def assertCacheEmpty(self):
402 if os.path.exists(cache.cachedir):
403 # The cache is considered empty if it contains no files at all or just the cache.lock
404 self.assertIn(os.listdir(cache.cachedir), ([], ['cache.lock']))
405
406 def ensure_cache(self):
407 self.do([EMCC, '-O2', test_file('hello_world.c')])

Callers 3

clear_cacheMethod · 0.95

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected