MCPcopy Create free account
hub / github.com/idank/explainshell / _make_report

Method _make_report

tests/test_manager.py:2651–2662  ·  view source on GitHub ↗
(self, **overrides)

Source from the content-addressed store, hash-verified

2649 return json.load(f)
2650
2651 def _make_report(self, **overrides):
2652 defaults = dict(
2653 timestamp="2026-03-30T12:00:00+00:00",
2654 git=GitInfo(commit="abc123", commit_short="abc123", dirty=False),
2655 config=ExtractConfig(mode="llm", model="openai/test-model"),
2656 elapsed_seconds=1.0,
2657 summary=ExtractSummary(succeeded=1, skipped=0, failed=0),
2658 db_before=DbCounts(manpages=10, mappings=50),
2659 db_after=DbCounts(manpages=11, mappings=55),
2660 )
2661 defaults.update(overrides)
2662 return ExtractionReport(**defaults)
2663
2664 def test_report_schema(self) -> None:
2665 """report.json has the expected top-level fields and values."""

Calls 5

GitInfoClass · 0.90
ExtractConfigClass · 0.90
ExtractSummaryClass · 0.90
DbCountsClass · 0.90
ExtractionReportClass · 0.90

Tested by

no test coverage detected