Token counts use the expected suffix formatting.
(tmp_path: Path, file_chars: int, expected: str)
| 52 | ], |
| 53 | ) |
| 54 | def test_savings_output_token_suffixes(tmp_path: Path, file_chars: int, expected: str) -> None: |
| 55 | """Token counts use the expected suffix formatting.""" |
| 56 | stats_file = tmp_path / "stats.jsonl" |
| 57 | stats_file.write_text( |
| 58 | _make_stats_record(datetime.now(timezone.utc).timestamp(), snippet_chars=0, file_chars=file_chars) + "\n" |
| 59 | ) |
| 60 | assert expected in format_savings_report(path=stats_file) |
| 61 | |
| 62 | |
| 63 | def test_savings_do_not_subtract_unknown_baselines(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected