Skip to content

Commit

Permalink
Hide test befind cfg(test)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Pius <[email protected]>
  • Loading branch information
MathiasPius committed Apr 30, 2024
1 parent 758669a commit b68560b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ fn derive_applicability() {
assert!(!named_struct_trait.is_applicable_to(&named_enum));
}

#[cfg(test)]
#[test]
fn test_derive_parsing() {
assert_eq!("PartialEq".parse::<Derive>().unwrap(), Derive::all("PartialEq"));
Expand Down

0 comments on commit b68560b

Please sign in to comment.