diff --git a/martin/Cargo.toml b/martin/Cargo.toml index 311af2e91..7958995d8 100644 --- a/martin/Cargo.toml +++ b/martin/Cargo.toml @@ -125,7 +125,7 @@ cargo-husky.workspace = true criterion.workspace = true ctor.workspace = true indoc.workspace = true -insta = { workspace = true, features = ["json","yaml"] } +insta = { workspace = true, features = ["json", "yaml"] } pprof.workspace = true rstest.workspace = true testcontainers-modules.workspace = true diff --git a/tests/fixtures/sprites/expected/all_1.json b/martin/src/sprites/snapshots/martin__sprites__tests__all_1.json.snap similarity index 84% rename from tests/fixtures/sprites/expected/all_1.json rename to martin/src/sprites/snapshots/martin__sprites__tests__all_1.json.snap index 7828c798e..b53975672 100644 --- a/tests/fixtures/sprites/expected/all_1.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__all_1.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "another_bicycle": { "height": 15, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__all_1.snap b/martin/src/sprites/snapshots/martin__sprites__tests__all_1.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__all_1.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/all_1.png b/martin/src/sprites/snapshots/martin__sprites__tests__all_1.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/all_1.png rename to martin/src/sprites/snapshots/martin__sprites__tests__all_1.snap.png diff --git a/tests/fixtures/sprites/expected/all_1_sdf.json b/martin/src/sprites/snapshots/martin__sprites__tests__all_1_sdf.json.snap similarity index 86% rename from tests/fixtures/sprites/expected/all_1_sdf.json rename to martin/src/sprites/snapshots/martin__sprites__tests__all_1_sdf.json.snap index 7a179b175..4632382fd 100644 --- a/tests/fixtures/sprites/expected/all_1_sdf.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__all_1_sdf.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "another_bicycle": { "height": 21, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__all_1_sdf.snap b/martin/src/sprites/snapshots/martin__sprites__tests__all_1_sdf.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__all_1_sdf.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/all_1_sdf.png b/martin/src/sprites/snapshots/martin__sprites__tests__all_1_sdf.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/all_1_sdf.png rename to martin/src/sprites/snapshots/martin__sprites__tests__all_1_sdf.snap.png diff --git a/tests/fixtures/sprites/expected/all_2.json b/martin/src/sprites/snapshots/martin__sprites__tests__all_2.json.snap similarity index 84% rename from tests/fixtures/sprites/expected/all_2.json rename to martin/src/sprites/snapshots/martin__sprites__tests__all_2.json.snap index b95ec54b2..f5ddf5d22 100644 --- a/tests/fixtures/sprites/expected/all_2.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__all_2.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "another_bicycle": { "height": 30, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__all_2.snap b/martin/src/sprites/snapshots/martin__sprites__tests__all_2.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__all_2.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/all_2.png b/martin/src/sprites/snapshots/martin__sprites__tests__all_2.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/all_2.png rename to martin/src/sprites/snapshots/martin__sprites__tests__all_2.snap.png diff --git a/tests/fixtures/sprites/expected/all_2_sdf.json b/martin/src/sprites/snapshots/martin__sprites__tests__all_2_sdf.json.snap similarity index 86% rename from tests/fixtures/sprites/expected/all_2_sdf.json rename to martin/src/sprites/snapshots/martin__sprites__tests__all_2_sdf.json.snap index 7da6e3238..7409f54f8 100644 --- a/tests/fixtures/sprites/expected/all_2_sdf.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__all_2_sdf.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "another_bicycle": { "height": 36, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__all_2_sdf.snap b/martin/src/sprites/snapshots/martin__sprites__tests__all_2_sdf.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__all_2_sdf.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/all_2_sdf.png b/martin/src/sprites/snapshots/martin__sprites__tests__all_2_sdf.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/all_2_sdf.png rename to martin/src/sprites/snapshots/martin__sprites__tests__all_2_sdf.snap.png diff --git a/tests/fixtures/sprites/expected/src1_1.json b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1.json.snap similarity index 80% rename from tests/fixtures/sprites/expected/src1_1.json rename to martin/src/sprites/snapshots/martin__sprites__tests__src1_1.json.snap index 578634f50..2a80cc3b1 100644 --- a/tests/fixtures/sprites/expected/src1_1.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "another_bicycle": { "height": 15, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__src1_1.snap b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/src1_1.png b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/src1_1.png rename to martin/src/sprites/snapshots/martin__sprites__tests__src1_1.snap.png diff --git a/tests/fixtures/sprites/expected/src1_1_sdf.json b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1_sdf.json.snap similarity index 83% rename from tests/fixtures/sprites/expected/src1_1_sdf.json rename to martin/src/sprites/snapshots/martin__sprites__tests__src1_1_sdf.json.snap index d90ee2d88..96a8ac98c 100644 --- a/tests/fixtures/sprites/expected/src1_1_sdf.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1_sdf.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "another_bicycle": { "height": 21, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__src1_1_sdf.snap b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1_sdf.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1_sdf.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/src1_1_sdf.png b/martin/src/sprites/snapshots/martin__sprites__tests__src1_1_sdf.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/src1_1_sdf.png rename to martin/src/sprites/snapshots/martin__sprites__tests__src1_1_sdf.snap.png diff --git a/tests/fixtures/sprites/expected/src1_2.json b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2.json.snap similarity index 80% rename from tests/fixtures/sprites/expected/src1_2.json rename to martin/src/sprites/snapshots/martin__sprites__tests__src1_2.json.snap index 7ac8efa9c..cb48d3008 100644 --- a/tests/fixtures/sprites/expected/src1_2.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "another_bicycle": { "height": 30, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__src1_2.snap b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/src1_2.png b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/src1_2.png rename to martin/src/sprites/snapshots/martin__sprites__tests__src1_2.snap.png diff --git a/tests/fixtures/sprites/expected/src1_2_sdf.json b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2_sdf.json.snap similarity index 82% rename from tests/fixtures/sprites/expected/src1_2_sdf.json rename to martin/src/sprites/snapshots/martin__sprites__tests__src1_2_sdf.json.snap index 9b7683ec8..d90fcc91a 100644 --- a/tests/fixtures/sprites/expected/src1_2_sdf.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2_sdf.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "another_bicycle": { "height": 36, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__src1_2_sdf.snap b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2_sdf.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2_sdf.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/src1_2_sdf.png b/martin/src/sprites/snapshots/martin__sprites__tests__src1_2_sdf.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/src1_2_sdf.png rename to martin/src/sprites/snapshots/martin__sprites__tests__src1_2_sdf.snap.png diff --git a/tests/fixtures/sprites/expected/src2_1.json b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1.json.snap similarity index 57% rename from tests/fixtures/sprites/expected/src2_1.json rename to martin/src/sprites/snapshots/martin__sprites__tests__src2_1.json.snap index 33c5a847b..f15ce45c5 100644 --- a/tests/fixtures/sprites/expected/src2_1.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "bicycle": { "height": 15, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__src2_1.snap b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/src2_1.png b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/src2_1.png rename to martin/src/sprites/snapshots/martin__sprites__tests__src2_1.snap.png diff --git a/tests/fixtures/sprites/expected/src2_1_sdf.json b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1_sdf.json.snap similarity index 61% rename from tests/fixtures/sprites/expected/src2_1_sdf.json rename to martin/src/sprites/snapshots/martin__sprites__tests__src2_1_sdf.json.snap index bf3f7792a..07de544de 100644 --- a/tests/fixtures/sprites/expected/src2_1_sdf.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1_sdf.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "bicycle": { "height": 21, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__src2_1_sdf.snap b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1_sdf.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1_sdf.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/src2_1_sdf.png b/martin/src/sprites/snapshots/martin__sprites__tests__src2_1_sdf.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/src2_1_sdf.png rename to martin/src/sprites/snapshots/martin__sprites__tests__src2_1_sdf.snap.png diff --git a/tests/fixtures/sprites/expected/src2_2.json b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2.json.snap similarity index 57% rename from tests/fixtures/sprites/expected/src2_2.json rename to martin/src/sprites/snapshots/martin__sprites__tests__src2_2.json.snap index b7ec269c2..e39146855 100644 --- a/tests/fixtures/sprites/expected/src2_2.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "bicycle": { "height": 30, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__src2_2.snap b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/src2_2.png b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/src2_2.png rename to martin/src/sprites/snapshots/martin__sprites__tests__src2_2.snap.png diff --git a/tests/fixtures/sprites/expected/src2_2_sdf.json b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2_sdf.json.snap similarity index 61% rename from tests/fixtures/sprites/expected/src2_2_sdf.json rename to martin/src/sprites/snapshots/martin__sprites__tests__src2_2_sdf.json.snap index 03636083d..460c843e6 100644 --- a/tests/fixtures/sprites/expected/src2_2_sdf.json +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2_sdf.json.snap @@ -1,3 +1,7 @@ +--- +source: martin/src/sprites/mod.rs +expression: sprites.get_index() +--- { "bicycle": { "height": 36, diff --git a/martin/src/sprites/snapshots/martin__sprites__tests__src2_2_sdf.snap b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2_sdf.snap new file mode 100644 index 000000000..44ea33d31 --- /dev/null +++ b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2_sdf.snap @@ -0,0 +1,6 @@ +--- +source: martin/src/sprites/mod.rs +expression: png +extension: png +snapshot_kind: binary +--- diff --git a/tests/fixtures/sprites/expected/src2_2_sdf.png b/martin/src/sprites/snapshots/martin__sprites__tests__src2_2_sdf.snap.png similarity index 100% rename from tests/fixtures/sprites/expected/src2_2_sdf.png rename to martin/src/sprites/snapshots/martin__sprites__tests__src2_2_sdf.snap.png