Skip to content

Commit

Permalink
feat: #[cfg(test)] by default
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Oct 15, 2024
1 parent 02e513e commit a91eb58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fn derive_mock_impl(token_stream: TokenStream) -> TokenStream {
match self_definition_result {
Ok(self_definition) => {
quote! {
#[cfg(test)]
impl ::mock_default::Mock for #identifier {
fn mock() -> Self {
#self_definition
Expand Down

0 comments on commit a91eb58

Please sign in to comment.