MCPcopy
hub / github.com/MinishLab/semble / test_savings_output_token_suffixes

Function test_savings_output_token_suffixes

tests/test_stats.py:54–60  ·  view source on GitHub ↗

Token counts use the expected suffix formatting.

(tmp_path: Path, file_chars: int, expected: str)

Source from the content-addressed store, hash-verified

52 ],
53)
54def 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
63def test_savings_do_not_subtract_unknown_baselines(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 2

format_savings_reportFunction · 0.90
_make_stats_recordFunction · 0.85

Tested by

no test coverage detected