From 7525a94178fd6bfd15d457c15c1215c23158f955 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Sat, 18 Nov 2023 02:26:43 +0000 Subject: [PATCH] Switch to using `taplo` for a snapbox test It turns out `wasm-bindgen` didn't include a Cargo.lock file. --- tests/cases/taplo.toml | 2 + tests/cases/taplo.with_token.stderr | 1 + tests/cases/taplo.with_token.stdout | 29 +++++++++++ tests/cases/taplo.without_token.stderr | 1 + tests/cases/taplo.without_token.stdout | 26 ++++++++++ tests/cases/wasm-bindgen.toml | 2 - tests/cases/wasm-bindgen.with_token.stderr | 2 - tests/cases/wasm-bindgen.with_token.stdout | 49 ------------------- tests/cases/wasm-bindgen.without_token.stderr | 2 - tests/cases/wasm-bindgen.without_token.stdout | 44 ----------------- 10 files changed, 59 insertions(+), 99 deletions(-) create mode 100644 tests/cases/taplo.toml create mode 100644 tests/cases/taplo.with_token.stderr create mode 100644 tests/cases/taplo.with_token.stdout create mode 100644 tests/cases/taplo.without_token.stderr create mode 100644 tests/cases/taplo.without_token.stdout delete mode 100644 tests/cases/wasm-bindgen.toml delete mode 100644 tests/cases/wasm-bindgen.with_token.stderr delete mode 100644 tests/cases/wasm-bindgen.with_token.stdout delete mode 100644 tests/cases/wasm-bindgen.without_token.stderr delete mode 100644 tests/cases/wasm-bindgen.without_token.stdout diff --git a/tests/cases/taplo.toml b/tests/cases/taplo.toml new file mode 100644 index 00000000..3d72edc3 --- /dev/null +++ b/tests/cases/taplo.toml @@ -0,0 +1,2 @@ +url = "https://github.com/tamasfe/taplo" +rev = "0.8.1" diff --git a/tests/cases/taplo.with_token.stderr b/tests/cases/taplo.with_token.stderr new file mode 100644 index 00000000..7187d38d --- /dev/null +++ b/tests/cases/taplo.with_token.stderr @@ -0,0 +1 @@ +Scanning 267 packages and their dependencies (pass --verbose for more information) diff --git a/tests/cases/taplo.with_token.stdout b/tests/cases/taplo.with_token.stdout new file mode 100644 index 00000000..ec634ede --- /dev/null +++ b/tests/cases/taplo.with_token.stdout @@ -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) diff --git a/tests/cases/taplo.without_token.stderr b/tests/cases/taplo.without_token.stderr new file mode 100644 index 00000000..7187d38d --- /dev/null +++ b/tests/cases/taplo.without_token.stderr @@ -0,0 +1 @@ +Scanning 267 packages and their dependencies (pass --verbose for more information) diff --git a/tests/cases/taplo.without_token.stdout b/tests/cases/taplo.without_token.stdout new file mode 100644 index 00000000..2ac4ad4e --- /dev/null +++ b/tests/cases/taplo.without_token.stdout @@ -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: [..]) diff --git a/tests/cases/wasm-bindgen.toml b/tests/cases/wasm-bindgen.toml deleted file mode 100644 index f77aaa94..00000000 --- a/tests/cases/wasm-bindgen.toml +++ /dev/null @@ -1,2 +0,0 @@ -url = "https://github.com/rustwasm/wasm-bindgen" -rev = "0.2.87" diff --git a/tests/cases/wasm-bindgen.with_token.stderr b/tests/cases/wasm-bindgen.with_token.stderr deleted file mode 100644 index 4ee55ccc..00000000 --- a/tests/cases/wasm-bindgen.with_token.stderr +++ /dev/null @@ -1,2 +0,0 @@ -Scanning 342 packages and their dependencies (pass --verbose for more information) -warning: failed to clone `https://hg.mozilla.org/mozilla-central/file/tip/testing/mozbase/rust/mozrunner` diff --git a/tests/cases/wasm-bindgen.with_token.stdout b/tests/cases/wasm-bindgen.with_token.stdout deleted file mode 100644 index 1a21cdad..00000000 --- a/tests/cases/wasm-bindgen.with_token.stdout +++ /dev/null @@ -1,49 +0,0 @@ -mozrunner (uncloneable) - mozprofile (requirement: ^0.8, version used: 0.8.0, latest: [..]) - plist (requirement: ^0.5, version used: 0.5.5, latest: [..]) - dirs (requirement: ^2, version used: 2.0.2, latest: [..]) - winreg (requirement: ^0.5, version used: 0.5.1, latest: [..]) -example-tests (no repository) - hyper (requirement: ^0.14.20, version used: 0.14.27, latest: [..]) - mozprofile (requirement: ^0.8.0, version used: 0.8.0, latest: [..]) - mozrunner (requirement: ^0.14.0, version used: 0.14.0, latest: [..]) - tokio-tungstenite (requirement: ^0.17.2, version used: 0.17.2, latest: [..]) - tower-http (requirement: ^0.3.4, version used: 0.3.5, latest: [..]) -raytrace-parallel (no repository) - serde-wasm-bindgen (requirement: ^0.4.3, version used: 0.4.5, latest: [..]) -raytracer (no repository) - image (requirement: ^0.12.3, version used: 0.12.4, latest: [..]) -rust-webassembly-weather-reports (no repository) - gloo (requirement: ^0.2.1, version used: 0.2.1, latest: [..]) - reqwest (requirement: ^0.10.6, version used: 0.10.10, latest: [..]) -todomvc (no repository) - askama (requirement: ^0.10.0, version used: 0.10.5, latest: [..]) -wasm-audio-worklet (no repository) - console_log (requirement: ^0.2.0, version used: 0.2.2, latest: [..]) -weedle (https://github.com/rustwasm/weedle updated [..] days ago) - nom (requirement: ^5.0.0, version used: 5.1.3, latest: [..]) -lexical-core (https://github.com/Alexhuszagh/rust-lexical updated [..] days ago) - arrayvec (requirement: ^0.5, version used: 0.5.2, latest: [..]) - bitflags (requirement: ^1.2, version used: 1.3.2, latest: [..]) -proc-macro-error (https://gitlab.com/CreepySkeleton/proc-macro-error updated [..] days ago) - syn (requirement: ^1, version used: 1.0.109, latest: [..]) -kernel32-sys (https://github.com/retep998/winapi-rs updated [..] days ago) - winapi (requirement: ^0.2.5, version used: 0.2.8, latest: [..]) -ws2_32-sys (https://github.com/retep998/winapi-rs updated [..] days ago) - winapi (requirement: ^0.2.5, version used: 0.2.8, latest: [..]) -adler32 (https://github.com/remram44/adler32-rs updated [..] days ago) - humansize (requirement: ^1.1, version used: 1.1.1, latest: [..]) -atty (https://github.com/softprops/atty updated [..] days ago) - hermit-abi (requirement: ^0.1.6, version used: 0.1.19, latest: [..]) -multipart (http://github.com/abonander/multipart updated [..] days ago) - quick-error (requirement: ^1.2, version used: 1.2.3, latest: [..]) - twoway (requirement: ^0.1, version used: 0.1.8, latest: [..]) -fuchsia-zircon (https://fuchsia.googlesource.com/garnet updated [..] days ago) - bitflags (requirement: ^1.0.0, version used: 1.3.2, latest: [..]) -enum_primitive (https://github.com/andersk/enum_primitive-rs.git updated [..] days ago) - num-traits (requirement: ^0.1.32, version used: 0.1.43, latest: [..]) -buf_redux (https://github.com/abonander/buf_redux archived) -docopt (https://github.com/docopt/docopt.rs archived) -regex-automata (https://github.com/BurntSushi/regex-automata archived) -safemem (https://github.com/abonander/safemem archived) -utf-8 (https://github.com/SimonSapin/rust-utf8 archived) diff --git a/tests/cases/wasm-bindgen.without_token.stderr b/tests/cases/wasm-bindgen.without_token.stderr deleted file mode 100644 index 4ee55ccc..00000000 --- a/tests/cases/wasm-bindgen.without_token.stderr +++ /dev/null @@ -1,2 +0,0 @@ -Scanning 342 packages and their dependencies (pass --verbose for more information) -warning: failed to clone `https://hg.mozilla.org/mozilla-central/file/tip/testing/mozbase/rust/mozrunner` diff --git a/tests/cases/wasm-bindgen.without_token.stdout b/tests/cases/wasm-bindgen.without_token.stdout deleted file mode 100644 index e420ffad..00000000 --- a/tests/cases/wasm-bindgen.without_token.stdout +++ /dev/null @@ -1,44 +0,0 @@ -mozrunner (uncloneable) - mozprofile (requirement: ^0.8, version used: 0.8.0, latest: [..]) - plist (requirement: ^0.5, version used: 0.5.5, latest: [..]) - dirs (requirement: ^2, version used: 2.0.2, latest: [..]) - winreg (requirement: ^0.5, version used: 0.5.1, latest: [..]) -example-tests (no repository) - hyper (requirement: ^0.14.20, version used: 0.14.27, latest: [..]) - mozprofile (requirement: ^0.8.0, version used: 0.8.0, latest: [..]) - mozrunner (requirement: ^0.14.0, version used: 0.14.0, latest: [..]) - tokio-tungstenite (requirement: ^0.17.2, version used: 0.17.2, latest: [..]) - tower-http (requirement: ^0.3.4, version used: 0.3.5, latest: [..]) -raytrace-parallel (no repository) - serde-wasm-bindgen (requirement: ^0.4.3, version used: 0.4.5, latest: [..]) -raytracer (no repository) - image (requirement: ^0.12.3, version used: 0.12.4, latest: [..]) -rust-webassembly-weather-reports (no repository) - gloo (requirement: ^0.2.1, version used: 0.2.1, latest: [..]) - reqwest (requirement: ^0.10.6, version used: 0.10.10, latest: [..]) -todomvc (no repository) - askama (requirement: ^0.10.0, version used: 0.10.5, latest: [..]) -wasm-audio-worklet (no repository) - console_log (requirement: ^0.2.0, version used: 0.2.2, latest: [..]) -weedle (https://github.com/rustwasm/weedle updated [..] days ago) - nom (requirement: ^5.0.0, version used: 5.1.3, latest: [..]) -lexical-core (https://github.com/Alexhuszagh/rust-lexical updated [..] days ago) - arrayvec (requirement: ^0.5, version used: 0.5.2, latest: [..]) - bitflags (requirement: ^1.2, version used: 1.3.2, latest: [..]) -proc-macro-error (https://gitlab.com/CreepySkeleton/proc-macro-error updated [..] days ago) - syn (requirement: ^1, version used: 1.0.109, latest: [..]) -kernel32-sys (https://github.com/retep998/winapi-rs updated [..] days ago) - winapi (requirement: ^0.2.5, version used: 0.2.8, latest: [..]) -ws2_32-sys (https://github.com/retep998/winapi-rs updated [..] days ago) - winapi (requirement: ^0.2.5, version used: 0.2.8, latest: [..]) -adler32 (https://github.com/remram44/adler32-rs updated [..] days ago) - humansize (requirement: ^1.1, version used: 1.1.1, latest: [..]) -atty (https://github.com/softprops/atty updated [..] days ago) - hermit-abi (requirement: ^0.1.6, version used: 0.1.19, latest: [..]) -multipart (http://github.com/abonander/multipart updated [..] days ago) - quick-error (requirement: ^1.2, version used: 1.2.3, latest: [..]) - twoway (requirement: ^0.1, version used: 0.1.8, latest: [..]) -fuchsia-zircon (https://fuchsia.googlesource.com/garnet updated [..] days ago) - bitflags (requirement: ^1.0.0, version used: 1.3.2, latest: [..]) -enum_primitive (https://github.com/andersk/enum_primitive-rs.git updated [..] days ago) - num-traits (requirement: ^0.1.32, version used: 0.1.43, latest: [..])