You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nit(coderabbit): doc-comment + test + error-wrap polish
Four low-value but clean tweaks from CodeRabbit on PR #661:
- `grovedb-query/src/query_item/mod.rs`: refresh the stale
`NonAggregateInner::deserialize` inline comment to mention both
excluded aggregate variants (Count + Sum), matching the struct-level
doc and `NON_AGGREGATE_VARIANTS`.
- `grovedb/src/tests/aggregate_sum_query_tests.rs`: drop the redundant
disjunction `msg.contains("must be a ProvableSumTree") ||
msg.contains("ProvableSumTree")` — the first clause already implies
the second; pin the exact phrase.
- `grovedb/src/tests/aggregate_sum_query_tests.rs`: harden
`provable_sum_tree_overflow_at_i64_max_is_rejected` so it no longer
silently passes when insert AND prove AND verify all accept an
overflow. Replace the early-return-on-both-inserts-accepted with an
explicit "at least one stage must reject" assertion.
- `grovedb/src/operations/get/query.rs`: wrap the MerkError from
`Merk::sum_aggregate_on_range` (and the count sibling) with
contextual `CorruptedData(format!("query_aggregate_{sum,count} at
path {:?}: {}", path_slices, e))` per the repo
error-wrapping convention. Two test assertions updated from
`MerkError(_)` to `CorruptedData(_)` to match.
Workspace `cargo test --all-features`: 3102 pass / 0 fail (unchanged).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments