Skip to content

Commit

Permalink
Merge pull request #189 from vic1707/test-not-in-test
Browse files Browse the repository at this point in the history
add `tests` module around generated tests
  • Loading branch information
greyblake authored Oct 24, 2024
2 parents 3401f2c + 750975e commit 9ee035d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nutype_macros/src/common/gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,11 @@ pub trait GenerateNewtype {
#implementation
#implement_traits

#tests
#[cfg(test)]
mod tests {
use super::*;
#tests
}
}
#reimports
))
Expand Down

0 comments on commit 9ee035d

Please sign in to comment.