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

Method test_scan_is_incremental

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

Source from the content-addressed store, hash-verified

489 self.assertEqual(result["sessions"], 1)
490
491 def test_scan_is_incremental(self):
492 self._write_project_jsonl("user/myproject", "sess-1")
493 scan(projects_dir=self.projects_dir, db_path=self.db_path, verbose=False)
494 # Second scan should skip
495 result = scan(projects_dir=self.projects_dir, db_path=self.db_path, verbose=False)
496 self.assertEqual(result["skipped"], 1)
497 self.assertEqual(result["new"], 0)
498
499 def test_scan_empty_directory(self):
500 result = scan(projects_dir=self.projects_dir, db_path=self.db_path, verbose=False)

Callers

nothing calls this directly

Calls 2

_write_project_jsonlMethod · 0.95
scanFunction · 0.90

Tested by

no test coverage detected