Closed NickLarsenNZ closed 5 months ago
This change is to encourage testing error variants by type rather than text contents.
PartialEq
[!IMPORTANT] Some variants are impossible to compare, so these implementations are restricted to #[cfg(test)] because they cause panics.
#[cfg(test)]
# Reviewer - [ ] Code contains useful comments - [ ] (Integration-)Test cases added - [ ] Documentation added or updated - [ ] Changelog updated - [ ] Cargo.toml only contains references to git tags (not specific commits or branches)
# Acceptance - [ ] Feature Tracker has been updated - [ ] Proper release label has been added
Description
This change is to encourage testing error variants by type rather than text contents.
PartialEq
on most Snafu Error enums.PartialEq
for Snafu error enums that use types that are not directly comparable.Definition of Done Checklist