🧪 test(kebab-app): assert chunk_count + asset_count in schema_report (fb-27)

Plug coverage hole flagged in code review — test 1 was asserting only
doc_count + last_ingest_at, leaving count_summary's chunk_count and
asset_count queries un-pinned.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
th-kim0823
2026-05-07 12:06:04 +09:00
parent ab96335174
commit 3e33daaa9b

View File

@@ -68,6 +68,16 @@ fn schema_report_reflects_freshly_ingested_kb() {
"last_ingest_at must be set after ingest: {:?}",
schema.stats
);
assert!(
schema.stats.chunk_count >= 2,
"expected ≥2 chunks (a.md + b.md): {:?}",
schema.stats
);
assert_eq!(
schema.stats.asset_count, 2,
"expected 2 assets (a.md + b.md): {:?}",
schema.stats
);
}
#[test]