use rstest
to refactor unit tests
#12440
Labels
C-enhancement
New feature or request
S-needs-triage
This issue needs to be labelled
S-stale
This issue/PR is stale and will close with no further activity
Describe the feature
In #12379, the
rstest
framework is used to refactor unit tests.It would be beneficial to apply this across the codebase for DRY and maintainable code without needing to create helper test utility functions like this.
reth/crates/chainspec/src/spec.rs
Lines 931 to 942 in 7209622
Moreover, fixtures can be useful to remove boiler plate code
reth/crates/net/downloaders/src/headers/reverse_headers.rs
Lines 1282 to 1285 in d47904f
reth/crates/net/downloaders/src/headers/reverse_headers.rs
Lines 1310 to 1313 in d47904f
Additional context
No response
The text was updated successfully, but these errors were encountered: