Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using taplo for a snapbox test #21

Merged
merged 2 commits into from
Nov 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/cases/taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
url = "https://github.com/tamasfe/taplo"
rev = "0.8.1"
1 change: 1 addition & 0 deletions tests/cases/taplo.with_token.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Scanning 267 packages and their dependencies (pass --verbose for more information)
29 changes: 29 additions & 0 deletions tests/cases/taplo.with_token.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
lsp-async-stub (no repository)
lsp-types (requirement: ^0.93.0, version used: 0.93.2, latest: [..])
taplo-common (no repository)
ahash (requirement: ^0.7.6, version used: 0.7.6, latest: [..])
indexmap (requirement: ^1.6.0, version used: 1.9.1, latest: [..])
itertools (requirement: ^0.10.3, version used: 0.10.5, latest: [..])
json_value_merge (requirement: ^1.1.2, version used: 1.1.2, latest: [..])
lru (requirement: ^0.7.2, version used: 0.7.8, latest: [..])
toml (https://github.com/alexcrichton/toml-rs updated [..] days ago)
indexmap (requirement: ^1.0, version used: 1.9.1, latest: [..])
hex (https://github.com/KokaKiwi/rust-hex updated [..] days ago)
criterion (requirement: ^0.3, version used: 0.3.6, latest: [..])
tinytemplate (https://github.com/bheisler/TinyTemplate updated [..] days ago)
criterion (requirement: ^0.3, version used: 0.3.6, latest: [..])
debugid (https://github.com/getsentry/rust-debugid updated [..] days ago)
uuid (requirement: ^0.8.1, version used: 0.8.2, latest: [..])
proc-macro-error (https://gitlab.com/CreepySkeleton/proc-macro-error updated [..] days ago)
syn (requirement: ^1, version used: 1.0.103, latest: [..])
atty (https://github.com/softprops/atty updated [..] days ago)
hermit-abi (requirement: ^0.1.6, version used: 0.1.19, latest: [..])
serde_cbor (https://github.com/pyfisch/cbor updated [..] days ago)
half (requirement: ^1.2.0, version used: 1.8.2, latest: [..])
adler (https://github.com/jonas-schievink/adler.git updated [..] days ago)
criterion (requirement: ^0.3.2, version used: 0.3.6, latest: [..])
matchers (https://github.com/hawkw/matchers updated [..] days ago)
regex-automata (requirement: ^0.1, version used: 0.1.10, latest: [..])
regex-automata (https://github.com/BurntSushi/regex-automata archived)
serde_cbor (https://github.com/pyfisch/cbor archived)
toml (https://github.com/alexcrichton/toml-rs archived)
1 change: 1 addition & 0 deletions tests/cases/taplo.without_token.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Scanning 267 packages and their dependencies (pass --verbose for more information)
26 changes: 26 additions & 0 deletions tests/cases/taplo.without_token.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
lsp-async-stub (no repository)
lsp-types (requirement: ^0.93.0, version used: 0.93.2, latest: [..])
taplo-common (no repository)
ahash (requirement: ^0.7.6, version used: 0.7.6, latest: [..])
indexmap (requirement: ^1.6.0, version used: 1.9.1, latest: [..])
itertools (requirement: ^0.10.3, version used: 0.10.5, latest: [..])
json_value_merge (requirement: ^1.1.2, version used: 1.1.2, latest: [..])
lru (requirement: ^0.7.2, version used: 0.7.8, latest: [..])
toml (https://github.com/alexcrichton/toml-rs updated [..] days ago)
indexmap (requirement: ^1.0, version used: 1.9.1, latest: [..])
hex (https://github.com/KokaKiwi/rust-hex updated [..] days ago)
criterion (requirement: ^0.3, version used: 0.3.6, latest: [..])
tinytemplate (https://github.com/bheisler/TinyTemplate updated [..] days ago)
criterion (requirement: ^0.3, version used: 0.3.6, latest: [..])
debugid (https://github.com/getsentry/rust-debugid updated [..] days ago)
uuid (requirement: ^0.8.1, version used: 0.8.2, latest: [..])
proc-macro-error (https://gitlab.com/CreepySkeleton/proc-macro-error updated [..] days ago)
syn (requirement: ^1, version used: 1.0.103, latest: [..])
atty (https://github.com/softprops/atty updated [..] days ago)
hermit-abi (requirement: ^0.1.6, version used: 0.1.19, latest: [..])
serde_cbor (https://github.com/pyfisch/cbor updated [..] days ago)
half (requirement: ^1.2.0, version used: 1.8.2, latest: [..])
adler (https://github.com/jonas-schievink/adler.git updated [..] days ago)
criterion (requirement: ^0.3.2, version used: 0.3.6, latest: [..])
matchers (https://github.com/hawkw/matchers updated [..] days ago)
regex-automata (requirement: ^0.1, version used: 0.1.10, latest: [..])
2 changes: 0 additions & 2 deletions tests/cases/wasm-bindgen.toml

This file was deleted.

2 changes: 0 additions & 2 deletions tests/cases/wasm-bindgen.with_token.stderr

This file was deleted.

49 changes: 0 additions & 49 deletions tests/cases/wasm-bindgen.with_token.stdout

This file was deleted.

2 changes: 0 additions & 2 deletions tests/cases/wasm-bindgen.without_token.stderr

This file was deleted.

44 changes: 0 additions & 44 deletions tests/cases/wasm-bindgen.without_token.stdout

This file was deleted.

2 changes: 2 additions & 0 deletions tests/snapbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ fn snapbox() -> Result<()> {
.success();
}

assert!(tempdir.path().join("Cargo.lock").exists());

let mut command = Command::new(cargo_bin("cargo-unmaintained"));
command
.args(["unmaintained", "--color=never", "--imprecise"])
Expand Down