Repository navigation
test(devicetree): cover summary counts, node paging, and property selection in devicetree views - #7305
test(devicetree): cover summary counts, node paging, and property selection in devicetree views#7305saiyam-jain-dev wants to merge 2 commits into
Conversation
…ection in devicetree views
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
[Low impact] The test-only PR appears safe to merge. SummaryAdds tests for Devicetree summary counts, node and property selection, paging, and rejected requests.
Reviews (2) · Last reviewed commit: "test(devicetree): cover subsequent page ..." · Reviewed by Greptile |
Summary
Adds comprehensive unit tests in
src/domain/analysisView/devicetreeView.test.tscovering Devicetree analysis view projections, including summary count/reference calculations, node paging, property selection by node path, collection validation rules, and error handling for unsupported view kinds and missing node paths.Problem and expected behavior
While
projectDevicetreeViewimplements summary and paging views for Flattened Devicetree (.dtb) inspection evidence, it previously lacked a dedicated unit test suite covering its projection logic, collection validation rules (e.g. requiringpathfor properties, rejectingpathfor reservations/references, and handling nonexistent nodes), and calculated summary counters.Change and scope
src/domain/analysisView/devicetreeView.test.tsverifying:reservation_count,reference_count, andunresolved_reference_count.property_count, and assignment ofsource_index.pathpreserving original node index.pathor with an absent nodepath.source_index.pathon collections that do not support path selection.AnalysisInputError.Contribution scope fit: test-only coverage improvement within existing boundaries (not applicable).
Contract and boundary impact
src/domain/analysisView/devicetreeView.test.ts.docs/public/product-catalog.json), package, or installation impact: none.Expected effects:
Evidence and regression coverage
src/domain/analysisView/devicetreeView.test.tsFor evidence-bearing changes:
Validation performed
npx vitest run src/domain/analysisView/devicetreeView.test.ts— passed (9 passed in 35ms)npm run check:fast(turbo run typecheck lint) — passed cleanly (2/2 tasks successful in 50s)Compatibility, safety, and release
Author readiness
Human owner: @saiyam-jain-dev
Before merge
type(scope): outcome.