MCPcopy
hub / github.com/phuryn/claude-usage / test_handles_empty_file

Method test_handles_empty_file

tests/test_scanner.py:153–157  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 self.assertEqual(len(turns), 1)
152
153 def test_handles_empty_file(self):
154 path = self._write_jsonl("test.jsonl", [])
155 metas, turns, _, _ = parse_jsonl_file(path)
156 self.assertEqual(len(metas), 0)
157 self.assertEqual(len(turns), 0)
158
159 def test_multiple_sessions(self):
160 path = self._write_jsonl("test.jsonl", [

Callers

nothing calls this directly

Calls 2

_write_jsonlMethod · 0.95
parse_jsonl_fileFunction · 0.90

Tested by

no test coverage detected