Skip to content

Commit

Permalink
Move testdata to separate dir and mark generated
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-h-chamberlain committed Jun 1, 2024
1 parent 526f431 commit 0e4683b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ mod tests {
// have a bunch more keys configured, but this at least tests the basic
// collection / conversion process.
let metadata: Metadata =
serde_json::from_str(include_str!("./test_metadata.json")).unwrap();
serde_json::from_str(include_str!("../testdata/cargo_metadata.json")).unwrap();

let config = Cargo3DS::from_metadata(&metadata);
assert_eq!(config.len(), 4);
Expand Down
1 change: 1 addition & 0 deletions testdata/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json linguist-generated=true
File renamed without changes.

0 comments on commit 0e4683b

Please sign in to comment.