-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
stacks-sbtc/wsts
#200Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-testS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Description
I find myself creating test helpers/mocks in my test modules that are marked with #[cfg(test)]
. They are exported as pub
and can conveniently be used throughout the crate.
These helpers are not visible from other crates nor from integration tests in particular.
Making code compiled with cfg(test)
be visible outside of the scope of a crate would allow for better code reuse. Please consider adapting that behavior.
Related: rust-lang/rust#45599
haarts, dspicher, Alex6323, ms-ati, drahnr and 147 more
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-testS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Type
Projects
Status
No status