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

Function _fake_running_process

ci/tests/test_ninja_maintenance.py:46–53  ·  view source on GitHub ↗

Factory returning a callable that mimics RunningProcess(...).

(returncode: int)

Source from the content-addressed store, hash-verified

44
45
46def _fake_running_process(returncode: int) -> Any:
47 """Factory returning a callable that mimics RunningProcess(...)."""
48
49 def _factory(*args: Any, **kwargs: Any) -> _FakeRepairProc:
50 del args, kwargs
51 return _FakeRepairProc(returncode)
52
53 return _factory
54
55
56class TestPerformNinjaMaintenance(unittest.TestCase):

Calls

no outgoing calls

Tested by

no test coverage detected