-
-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Description
Would be great to keep as much consistency as possible. But is there anything we want to change while we can?
A few ideas:
- Update snapshot formats — already discussed
- Do we want to attempt to make the macros simpler?
- Currently we have
(value)&(name, value)&(name, value, debug_expr)(+ redaction filters, inline, etc), which is arguably OK for experienced users, but less immediately obvious for new folks reading code. - We could move the
debug_exprintowith_settings. - Though the more difficult-to-understand part is that adding a value after the first value means adding it before the first value. And not sure whether there's a good solution.
- Currently we have
- Compel
match ..in redactions? This allowsrustfmtto work. Plausibly it also delineates the redaction expression for easier reading. - Would be great for inline snapshots to work with
rustfmt, but don't think there's a way — if the inline snapshot is a normal expression without special syntax (such as@), it's not possible to discriminate between(name, value)and(value, snapshot) - Align syntax of filters & redactions? They are quite similar in purpose but currently defined very differently
- Shorten snapshot file names? #377, possibly breaks too much for a very marginal benefit
Metadata
Metadata
Assignees
Labels
No labels