MCPcopy Index your code
hub / github.com/idank/explainshell / _fake_run

Method _fake_run

tests/test_manager.py:2023–2029  ·  view source on GitHub ↗
(ext, gz_files, **kwargs)

Source from the content-addressed store, hash-verified

2021 ]
2022
2023 def _fake_run(ext, gz_files, **kwargs):
2024 files = left_files if mock_run.call_count == 1 else right_files
2025 on_result = kwargs.get("on_result")
2026 if on_result:
2027 for f in files:
2028 on_result(f.gz_path, f)
2029 return BatchResult()
2030
2031 mock_run.side_effect = _fake_run
2032

Callers

nothing calls this directly

Calls 2

BatchResultClass · 0.90
on_resultFunction · 0.50

Tested by

no test coverage detected