Repository navigation
test(engine): cover city models, KMZ and GeoPackage in the loss corpus - #2387
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewVerdict: no bugs, security issues or AGENTS.md violations found. The new cases look right on reading. I did not compile or run the tests, since this review is read-only. Bugs: none found. Checked:
Security: none. Test-only change, no new dependencies, no input handling in production code. Performance: none. The fixtures are a few hundred bytes each. Quality (nits, low severity):
AGENTS.md: compliant. The Prior review threads: none on this PR, so no earlier concerns were left alone. I posted no inline comments: the only items are the low-severity nits above. Change sizeCompared with the base branch: the whole PR against
|
|
FileGDB is intentionally listed: it is a supported reader outside this corpus and belongs in the remaining-coverage inventory. This PR adds no FileGDB implementation or fixtures. The two temporary-file cleanup suggestions are left for the release quality pass. The test retains the existing PID-based directory lifecycle; neither suggestion changes the paired reader-loss checks, which pass on this head. |
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Summary
The never-silent reading corpus accepted only text, leaving binary and archive reader paths outside its paired clean/lossy checks. Accept byte fixtures and add GeoPackage PointZ, CityJSON and CityGML varying line heights, plus every existing KML loss case through KMZ.
The GeoPackage fixture encodes its point independently of RustGIS’s 2D exporter. KMZ cases are derived from the KML rows so future additions exercise both containers. Each case checks that the lossy file reports its loss (or refuses it with a reason) and the clean file does not report that loss. Existing known-silent cases retain their expectations.
This is a first slice of the roadmap’s reader-loss corpus, not complete coverage of those formats. No production behavior, dependencies, saved formats or command interfaces change.
Surfaces: exercises the shared engine through
layer.addData, used by desktop, CLI, Python and agent callers. The browser upload command is not exercised by this native test; phone/UI controls, ribbon placement, shortcuts, plugin interfaces and Undo behavior are unchanged.Testing
cargo test --locked -p rustgis-engine --test never_silent_reading: passed, including every clean/lossy pair (0.03 seconds test runtime).cargo clippy --locked -p rustgis-engine --all-targets -- -D warnings: passed.UI evidence
No visible UI change.
Related issue
ROADMAP.md → Correct results: lossy sample files for readers outside the never-silent corpus.
Summary by CodeRabbit
Tests
Documentation