Skip to content

Commit

Permalink
test: use insta for tests, cleanup dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Sep 12, 2024
1 parent dd221d7 commit 4e08e3e
Show file tree
Hide file tree
Showing 16 changed files with 526 additions and 296 deletions.
16 changes: 16 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"rust-analyzer.runnableEnv": [
{
"env": {
// Stack backtraces.
"RUST_BACKTRACE": "1",
// Make sure all snapshots are written instead of just the first failure.
"INSTA_FORCE_PASS": "1",
"INSTA_UPDATE": "always",
}
}
],
"files.watcherExclude": {
"**/target": true
}
}
155 changes: 147 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ repository = "https://github.com/hydro-project/matchbox"
proc-macro = true

[dependencies]
proc-macro2 = "1.0.41"
quote = "1.0.20"
syn = { version = "1.0.98", features = ["fold", "full", "extra-traits"] }
proc-macro2 = "1.0.80"
quote = "1.0.37"
syn = { version = "2.0.0", features = ["fold", "full", "extra-traits"] }

[dev-dependencies]
insta = "1.40.0"
prettyplease = { version = "0.2.22", features = ["verbatim"] }
syn = { version = "2.0.77", features = ["parsing"] }
Loading

0 comments on commit 4e08e3e

Please sign in to comment.