Malformed JSON lines are skipped with a warning.
(tmp_path: Path)
| 82 | |
| 83 | |
| 84 | def test_savings_tolerates_bad_json(tmp_path: Path) -> None: |
| 85 | """Malformed JSON lines are skipped with a warning.""" |
| 86 | stats_file = tmp_path / "stats.jsonl" |
| 87 | stats_file.write_text("not valid json\n") |
| 88 | assert "Savings" in format_savings_report(path=stats_file) |
| 89 | |
| 90 | |
| 91 | def test_savings_cli_dispatch( |
nothing calls this directly
no test coverage detected