From 4c99cc8fc46729c0ab8978cc7b7cafc2137d7da8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 17 Sep 2023 19:17:02 -0500 Subject: [PATCH] Bump insta from 1.12.0 to 1.30.0 (#722) --- Cargo.lock | 33 ++++--------------- Cargo.toml | 2 +- tests/inputs-lua54/attributes-2.lua | 1 + ...nap => test_editorconfig__empty_root.snap} | 1 + ...ua.snap => test_editorconfig__global.snap} | 1 + ...lua.snap => test_editorconfig__local.snap} | 1 + ....lua.snap => test_editorconfig__root.snap} | 1 + ...ap => test_editorconfig__stylua_toml.snap} | 1 + .../tests__lua54@attributes-2.lua.snap | 7 ++++ 9 files changed, 21 insertions(+), 27 deletions(-) create mode 100644 tests/inputs-lua54/attributes-2.lua rename tests/snapshots/{test_editorconfig__empty_root@tab-double.lua.snap => test_editorconfig__empty_root.snap} (68%) rename tests/snapshots/{test_editorconfig__global@tab-single.lua.snap => test_editorconfig__global.snap} (70%) rename tests/snapshots/{test_editorconfig__local@space-4.lua.snap => test_editorconfig__local.snap} (71%) rename tests/snapshots/{test_editorconfig__root@space-2.lua.snap => test_editorconfig__root.snap} (73%) rename tests/snapshots/{test_editorconfig__stylua_toml@single-space-8.lua.snap => test_editorconfig__stylua_toml.snap} (62%) create mode 100644 tests/snapshots/tests__lua54@attributes-2.lua.snap diff --git a/Cargo.lock b/Cargo.lock index fc2133b2..b8afd4f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -292,12 +292,6 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" -[[package]] -name = "dtoa" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0" - [[package]] name = "ec4rs" version = "1.0.2" @@ -456,18 +450,17 @@ dependencies = [ [[package]] name = "insta" -version = "1.12.0" +version = "1.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c0c443f6dceb3a1cb7607c87501aa91e4b9c976044f725c2a74ca2152c91a4" +checksum = "28491f7753051e5704d4d0ae7860d45fae3238d7d235bc4289dcd45c48d3cec3" dependencies = [ "console", "globset", - "once_cell", - "serde", - "serde_json", - "serde_yaml", + "lazy_static", + "linked-hash-map", "similar", "walkdir", + "yaml-rust", ] [[package]] @@ -508,9 +501,9 @@ checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4" [[package]] name = "linked-hash-map" -version = "0.5.4" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" +checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" [[package]] name = "log" @@ -868,18 +861,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_yaml" -version = "0.8.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8c608a35705a5d3cdc9fbe403147647ff34b921f8e833e49306df898f9b20af" -dependencies = [ - "dtoa", - "indexmap 1.7.0", - "serde", - "yaml-rust", -] - [[package]] name = "similar" version = "2.2.1" diff --git a/Cargo.toml b/Cargo.toml index 78b40b1f..e46cd3ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,7 +60,7 @@ wasm-bindgen = { version = "0.2.81", optional = true } [dev-dependencies] criterion = "0.4.0" -insta = { version = "1.12.0", features = ["glob"] } +insta = { version = "1.30.0", features = ["glob"] } assert_cmd = "2.0.4" [[bench]] diff --git a/tests/inputs-lua54/attributes-2.lua b/tests/inputs-lua54/attributes-2.lua new file mode 100644 index 00000000..4b284f94 --- /dev/null +++ b/tests/inputs-lua54/attributes-2.lua @@ -0,0 +1 @@ +local a = 1 diff --git a/tests/snapshots/test_editorconfig__empty_root@tab-double.lua.snap b/tests/snapshots/test_editorconfig__empty_root.snap similarity index 68% rename from tests/snapshots/test_editorconfig__empty_root@tab-double.lua.snap rename to tests/snapshots/test_editorconfig__empty_root.snap index aac10cd4..58451cd2 100644 --- a/tests/snapshots/test_editorconfig__empty_root@tab-double.lua.snap +++ b/tests/snapshots/test_editorconfig__empty_root.snap @@ -1,6 +1,7 @@ --- source: tests/test_editorconfig.rs expression: "format(&contents, path.to_str().unwrap())" +input_file: tests/inputs-editorconfig/empty-root/tab-double.lua --- local foo = { a = 1, diff --git a/tests/snapshots/test_editorconfig__global@tab-single.lua.snap b/tests/snapshots/test_editorconfig__global.snap similarity index 70% rename from tests/snapshots/test_editorconfig__global@tab-single.lua.snap rename to tests/snapshots/test_editorconfig__global.snap index 70c1b4e1..94a1ff46 100644 --- a/tests/snapshots/test_editorconfig__global@tab-single.lua.snap +++ b/tests/snapshots/test_editorconfig__global.snap @@ -1,6 +1,7 @@ --- source: tests/test_editorconfig.rs expression: "format(&contents, path.to_str().unwrap())" +input_file: tests/inputs-editorconfig/global/tab-single.lua --- local foo = { a = 1, diff --git a/tests/snapshots/test_editorconfig__local@space-4.lua.snap b/tests/snapshots/test_editorconfig__local.snap similarity index 71% rename from tests/snapshots/test_editorconfig__local@space-4.lua.snap rename to tests/snapshots/test_editorconfig__local.snap index ff295d7e..8ed057f5 100644 --- a/tests/snapshots/test_editorconfig__local@space-4.lua.snap +++ b/tests/snapshots/test_editorconfig__local.snap @@ -1,6 +1,7 @@ --- source: tests/test_editorconfig.rs expression: "format(&contents, path.to_str().unwrap())" +input_file: tests/inputs-editorconfig/local/space-4.lua --- local foo = { a = 1, diff --git a/tests/snapshots/test_editorconfig__root@space-2.lua.snap b/tests/snapshots/test_editorconfig__root.snap similarity index 73% rename from tests/snapshots/test_editorconfig__root@space-2.lua.snap rename to tests/snapshots/test_editorconfig__root.snap index 92f6f6a5..001b9252 100644 --- a/tests/snapshots/test_editorconfig__root@space-2.lua.snap +++ b/tests/snapshots/test_editorconfig__root.snap @@ -1,6 +1,7 @@ --- source: tests/test_editorconfig.rs expression: "format(&contents, path.to_str().unwrap())" +input_file: tests/inputs-editorconfig/space-2.lua --- local foo = { a = 1, diff --git a/tests/snapshots/test_editorconfig__stylua_toml@single-space-8.lua.snap b/tests/snapshots/test_editorconfig__stylua_toml.snap similarity index 62% rename from tests/snapshots/test_editorconfig__stylua_toml@single-space-8.lua.snap rename to tests/snapshots/test_editorconfig__stylua_toml.snap index 2ff65eda..4f267c5b 100644 --- a/tests/snapshots/test_editorconfig__stylua_toml@single-space-8.lua.snap +++ b/tests/snapshots/test_editorconfig__stylua_toml.snap @@ -1,6 +1,7 @@ --- source: tests/test_editorconfig.rs expression: "&contents" +input_file: tests/inputs-editorconfig/stylua-toml/single-space-8.lua --- local foo = { a = 1, diff --git a/tests/snapshots/tests__lua54@attributes-2.lua.snap b/tests/snapshots/tests__lua54@attributes-2.lua.snap new file mode 100644 index 00000000..78f49b27 --- /dev/null +++ b/tests/snapshots/tests__lua54@attributes-2.lua.snap @@ -0,0 +1,7 @@ +--- +source: tests/tests.rs +expression: format(&contents) +input_file: tests/inputs-lua54/attributes-2.lua +--- +local a = 1 +