MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_cleanup_empty_cache

Method test_cleanup_empty_cache

ci/tests/test_cache_lock.py:147–150  ·  view source on GitHub ↗

Cleanup on empty cache should return 0

(self)

Source from the content-addressed store, hash-verified

145 shutil.rmtree(self.temp_dir, ignore_errors=True)
146
147 def test_cleanup_empty_cache(self) -> None:
148 """Cleanup on empty cache should return 0"""
149 cleaned = cleanup_stale_locks(self.cache_dir)
150 self.assertEqual(cleaned, 0)
151
152 def test_cleanup_stale_locks_only(self) -> None:
153 """Cleanup should only remove stale locks, not active ones"""

Callers

nothing calls this directly

Calls 1

cleanup_stale_locksFunction · 0.90

Tested by

no test coverage detected