From 86536c919c26934a439e4ebd8bac631e92941dc7 Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Wed, 13 Sep 2023 17:48:38 +0900 Subject: [PATCH] refactor: rename test file --- crates/stef-build/tests/{parser.rs => compiler.rs} | 0 ...-basic.stef.snap => compiler__compile@alias-basic.stef.snap} | 2 +- ...ti.stef.snap => compiler__compile@attribute-multi.stef.snap} | 2 +- ...e.stef.snap => compiler__compile@attribute-single.stef.snap} | 2 +- ...nit.stef.snap => compiler__compile@attribute-unit.stef.snap} | 2 +- ....stef.snap => compiler__compile@attributes-min-ws.stef.snap} | 2 +- ...ributes.stef.snap => compiler__compile@attributes.stef.snap} | 2 +- ...-basic.stef.snap => compiler__compile@const-basic.stef.snap} | 2 +- ...tring.stef.snap => compiler__compile@const-string.stef.snap} | 2 +- ...m-basic.stef.snap => compiler__compile@enum-basic.stef.snap} | 2 +- ...rics.stef.snap => compiler__compile@enum-generics.stef.snap} | 2 +- ...ny-ws.stef.snap => compiler__compile@enum-many-ws.stef.snap} | 2 +- ...min-ws.stef.snap => compiler__compile@enum-min-ws.stef.snap} | 2 +- ...basic.stef.snap => compiler__compile@import-basic.stef.snap} | 2 +- ...basic.stef.snap => compiler__compile@module-basic.stef.snap} | 2 +- ...basic.stef.snap => compiler__compile@schema-basic.stef.snap} | 2 +- ...basic.stef.snap => compiler__compile@struct-basic.stef.snap} | 2 +- ...cs.stef.snap => compiler__compile@struct-generics.stef.snap} | 2 +- ...-ws.stef.snap => compiler__compile@struct-many-ws.stef.snap} | 2 +- ...n-ws.stef.snap => compiler__compile@struct-min-ws.stef.snap} | 2 +- ...-basic.stef.snap => compiler__compile@types-basic.stef.snap} | 2 +- ...eric.stef.snap => compiler__compile@types-generic.stef.snap} | 2 +- ...ested.stef.snap => compiler__compile@types-nested.stef.snap} | 2 +- ...ypes-ref.stef.snap => compiler__compile@types-ref.stef.snap} | 2 +- 24 files changed, 23 insertions(+), 23 deletions(-) rename crates/stef-build/tests/{parser.rs => compiler.rs} (100%) rename crates/stef-build/tests/snapshots/{parser__compile@alias-basic.stef.snap => compiler__compile@alias-basic.stef.snap} (79%) rename crates/stef-build/tests/snapshots/{parser__compile@attribute-multi.stef.snap => compiler__compile@attribute-multi.stef.snap} (92%) rename crates/stef-build/tests/snapshots/{parser__compile@attribute-single.stef.snap => compiler__compile@attribute-single.stef.snap} (92%) rename crates/stef-build/tests/snapshots/{parser__compile@attribute-unit.stef.snap => compiler__compile@attribute-unit.stef.snap} (92%) rename crates/stef-build/tests/snapshots/{parser__compile@attributes-min-ws.stef.snap => compiler__compile@attributes-min-ws.stef.snap} (93%) rename crates/stef-build/tests/snapshots/{parser__compile@attributes.stef.snap => compiler__compile@attributes.stef.snap} (93%) rename crates/stef-build/tests/snapshots/{parser__compile@const-basic.stef.snap => compiler__compile@const-basic.stef.snap} (90%) rename crates/stef-build/tests/snapshots/{parser__compile@const-string.stef.snap => compiler__compile@const-string.stef.snap} (93%) rename crates/stef-build/tests/snapshots/{parser__compile@enum-basic.stef.snap => compiler__compile@enum-basic.stef.snap} (98%) rename crates/stef-build/tests/snapshots/{parser__compile@enum-generics.stef.snap => compiler__compile@enum-generics.stef.snap} (98%) rename crates/stef-build/tests/snapshots/{parser__compile@enum-many-ws.stef.snap => compiler__compile@enum-many-ws.stef.snap} (98%) rename crates/stef-build/tests/snapshots/{parser__compile@enum-min-ws.stef.snap => compiler__compile@enum-min-ws.stef.snap} (99%) rename crates/stef-build/tests/snapshots/{parser__compile@import-basic.stef.snap => compiler__compile@import-basic.stef.snap} (80%) rename crates/stef-build/tests/snapshots/{parser__compile@module-basic.stef.snap => compiler__compile@module-basic.stef.snap} (98%) rename crates/stef-build/tests/snapshots/{parser__compile@schema-basic.stef.snap => compiler__compile@schema-basic.stef.snap} (99%) rename crates/stef-build/tests/snapshots/{parser__compile@struct-basic.stef.snap => compiler__compile@struct-basic.stef.snap} (96%) rename crates/stef-build/tests/snapshots/{parser__compile@struct-generics.stef.snap => compiler__compile@struct-generics.stef.snap} (97%) rename crates/stef-build/tests/snapshots/{parser__compile@struct-many-ws.stef.snap => compiler__compile@struct-many-ws.stef.snap} (97%) rename crates/stef-build/tests/snapshots/{parser__compile@struct-min-ws.stef.snap => compiler__compile@struct-min-ws.stef.snap} (97%) rename crates/stef-build/tests/snapshots/{parser__compile@types-basic.stef.snap => compiler__compile@types-basic.stef.snap} (99%) rename crates/stef-build/tests/snapshots/{parser__compile@types-generic.stef.snap => compiler__compile@types-generic.stef.snap} (98%) rename crates/stef-build/tests/snapshots/{parser__compile@types-nested.stef.snap => compiler__compile@types-nested.stef.snap} (96%) rename crates/stef-build/tests/snapshots/{parser__compile@types-ref.stef.snap => compiler__compile@types-ref.stef.snap} (97%) diff --git a/crates/stef-build/tests/parser.rs b/crates/stef-build/tests/compiler.rs similarity index 100% rename from crates/stef-build/tests/parser.rs rename to crates/stef-build/tests/compiler.rs diff --git a/crates/stef-build/tests/snapshots/parser__compile@alias-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@alias-basic.stef.snap similarity index 79% rename from crates/stef-build/tests/snapshots/parser__compile@alias-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@alias-basic.stef.snap index 6c97e57..911bfbc 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@alias-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@alias-basic.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "/// Sample type alias.\ntype Sample = u32;" input_file: crates/stef-parser/tests/inputs/alias-basic.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@attribute-multi.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@attribute-multi.stef.snap similarity index 92% rename from crates/stef-build/tests/snapshots/parser__compile@attribute-multi.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@attribute-multi.stef.snap index 45fb7a6..c91e78b 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@attribute-multi.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@attribute-multi.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "#[validate(min = 1, max = 100)]\nstruct Sample" input_file: crates/stef-parser/tests/inputs/attribute-multi.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@attribute-single.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@attribute-single.stef.snap similarity index 92% rename from crates/stef-build/tests/snapshots/parser__compile@attribute-single.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@attribute-single.stef.snap index 1c91dc3..6c91cbc 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@attribute-single.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@attribute-single.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "#[deprecated = \"don't use\"]\nstruct Sample" input_file: crates/stef-parser/tests/inputs/attribute-single.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@attribute-unit.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@attribute-unit.stef.snap similarity index 92% rename from crates/stef-build/tests/snapshots/parser__compile@attribute-unit.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@attribute-unit.stef.snap index db93be7..b40f1c6 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@attribute-unit.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@attribute-unit.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "#[deprecated]\nstruct Sample" input_file: crates/stef-parser/tests/inputs/attribute-unit.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@attributes-min-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@attributes-min-ws.stef.snap similarity index 93% rename from crates/stef-build/tests/snapshots/parser__compile@attributes-min-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@attributes-min-ws.stef.snap index 28f80af..59bb46f 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@attributes-min-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@attributes-min-ws.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "#[deprecated=\"don't use\",compress]\n#[validate(in_range(min=100,max=200),non_empty)]\nstruct Sample" input_file: crates/stef-parser/tests/inputs/attributes-min-ws.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@attributes.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@attributes.stef.snap similarity index 93% rename from crates/stef-build/tests/snapshots/parser__compile@attributes.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@attributes.stef.snap index 0ceb36b..c8897f9 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@attributes.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@attributes.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "#[deprecated = \"don't use\", compress]\n#[validate(\n in_range(min = 100, max = 200),\n non_empty,\n)]\nstruct Sample" input_file: crates/stef-parser/tests/inputs/attributes.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@const-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@const-basic.stef.snap similarity index 90% rename from crates/stef-build/tests/snapshots/parser__compile@const-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@const-basic.stef.snap index 58cf2f0..b7ba462 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@const-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@const-basic.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "const BOOL_TRUE: bool = true;\nconst BOOL_FALSE: bool = false;\nconst INT: u32 = 100;\nconst FLOAT: f64 = 5.5;\nconst STRING: string = \"value\";\nconst BYTES: bytes = [1, 2, 3];" input_file: crates/stef-parser/tests/inputs/const-basic.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@const-string.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@const-string.stef.snap similarity index 93% rename from crates/stef-build/tests/snapshots/parser__compile@const-string.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@const-string.stef.snap index 01a1409..d4ff2a6 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@const-string.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@const-string.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "const SIMPLE: string = \"value\";\n\nconst NEWLINE_ESCAPE: string = \"one \\\n two \\\n three\\\n\";\n\nconst ESCAPES: string = \"escape basics \\r\\n \\t \\b \\f \\\\ \\\"\\\n hello\\\" \\n\\\n unicode \\u{2764} \\\n emoji ❤ \\\n\";\n\nconst MULTILINE: string = \"a\n b\n c\n\";" input_file: crates/stef-parser/tests/inputs/const-string.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@enum-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@enum-basic.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/parser__compile@enum-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@enum-basic.stef.snap index ca2594a..a95729a 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@enum-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@enum-basic.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "/// Sample enum.\nenum Sample {\n One @1,\n /// Second variant\n Two(u32 @1, u64 @2) @2,\n Three {\n field1: u32 @1,\n /// Second field of third variant\n field2: bool @2,\n } @3,\n}" input_file: crates/stef-parser/tests/inputs/enum-basic.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@enum-generics.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@enum-generics.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/parser__compile@enum-generics.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@enum-generics.stef.snap index c300d7a..cf8a2ea 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@enum-generics.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@enum-generics.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "/// Enum with generics.\nenum Sample {\n One @1,\n Two(A @1, B @2) @2,\n Three {\n field1: C @1,\n field2: D @2,\n } @3,\n}" input_file: crates/stef-parser/tests/inputs/enum-generics.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@enum-many-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@enum-many-ws.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/parser__compile@enum-many-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@enum-many-ws.stef.snap index 2fecc09..89649e2 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@enum-many-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@enum-many-ws.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "/// Sample enum.\n enum Sample {\n\n One @1,\n\n Two ( u32 @1, u64 @2) @2,\n\n Three {\n\n field1: u32 @1,\n\n field2: bool @2,\n\n } @3,\n\n }" input_file: crates/stef-parser/tests/inputs/enum-many-ws.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@enum-min-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@enum-min-ws.stef.snap similarity index 99% rename from crates/stef-build/tests/snapshots/parser__compile@enum-min-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@enum-min-ws.stef.snap index 0f99fb2..3779ec8 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@enum-min-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@enum-min-ws.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "enum Sample{One@1,Two(u32@1,u64@2,T@3)@2,Three{field1:u32@1,field2:bool@2,field3:T@3}@3}" input_file: crates/stef-parser/tests/inputs/enum-min-ws.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@import-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@import-basic.stef.snap similarity index 80% rename from crates/stef-build/tests/snapshots/parser__compile@import-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@import-basic.stef.snap index 0937da4..0ca9a1a 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@import-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@import-basic.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "use other::schema::Sample;\nuse second::submodule;" input_file: crates/stef-parser/tests/inputs/import-basic.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@module-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@module-basic.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/parser__compile@module-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@module-basic.stef.snap index cb47d2a..79200b4 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@module-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@module-basic.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "mod a {\n /// Inner module\n mod b {\n enum Sample {\n One @1,\n }\n }\n\n struct Sample {\n value: u32 @1,\n }\n}" input_file: crates/stef-parser/tests/inputs/module-basic.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@schema-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@schema-basic.stef.snap similarity index 99% rename from crates/stef-build/tests/snapshots/parser__compile@schema-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@schema-basic.stef.snap index 6f3c7e9..76bddd8 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@schema-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@schema-basic.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "/// Basic struct.\nstruct Sample {\n a: u32 @1,\n b: bool @2,\n}\n\n/// Sample enum.\nenum Sample {\n One @1,\n Two(u32 @1, u64 @2) @2,\n Three {\n field1: u32 @1,\n field2: bool @2,\n } @3,\n}" input_file: crates/stef-parser/tests/inputs/schema-basic.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@struct-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@struct-basic.stef.snap similarity index 96% rename from crates/stef-build/tests/snapshots/parser__compile@struct-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@struct-basic.stef.snap index 61b3709..d8f0ab7 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@struct-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@struct-basic.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "/// Basic struct.\nstruct Sample {\n a: u32 @1,\n /// Second field\n b: bool @2,\n}" input_file: crates/stef-parser/tests/inputs/struct-basic.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@struct-generics.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@struct-generics.stef.snap similarity index 97% rename from crates/stef-build/tests/snapshots/parser__compile@struct-generics.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@struct-generics.stef.snap index 9e6455c..6b75f34 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@struct-generics.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@struct-generics.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "/// Generic key-value pair.\nstruct KeyValue {\n key: K @1,\n value: V @2,\n}" input_file: crates/stef-parser/tests/inputs/struct-generics.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@struct-many-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@struct-many-ws.stef.snap similarity index 97% rename from crates/stef-build/tests/snapshots/parser__compile@struct-many-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@struct-many-ws.stef.snap index e927bfa..34f4e1b 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@struct-many-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@struct-many-ws.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "/// Some comment\n struct Sample<\n A,\n B\n > {\n\n a: u32 @1,\n b: bool @2,\n\n }" input_file: crates/stef-parser/tests/inputs/struct-many-ws.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@struct-min-ws.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@struct-min-ws.stef.snap similarity index 97% rename from crates/stef-build/tests/snapshots/parser__compile@struct-min-ws.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@struct-min-ws.stef.snap index e3ba05b..0f523dd 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@struct-min-ws.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@struct-min-ws.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "struct Sample{a:u32@1,b:bool@2,c:T@3}" input_file: crates/stef-parser/tests/inputs/struct-min-ws.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@types-basic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@types-basic.stef.snap similarity index 99% rename from crates/stef-build/tests/snapshots/parser__compile@types-basic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@types-basic.stef.snap index f855d4f..ffd3c91 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@types-basic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@types-basic.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "struct Sample {\n f01: bool @1,\n f02: u8 @2,\n f03: u16 @3,\n f04: u32 @4,\n f05: u64 @5,\n f06: u128 @6,\n f07: i8 @7,\n f08: i16 @8,\n f09: i32 @9,\n f10: i64 @10,\n f11: i128 @11,\n f12: f32 @12,\n f13: f64 @13,\n f14: string @14,\n f15: &string @15,\n f16: bytes @16,\n f17: &bytes @17,\n f18: box @18,\n f19: box @19,\n f20: (u32, u32, u32) @20,\n f21: [u32; 12] @21,\n}" input_file: crates/stef-parser/tests/inputs/types-basic.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@types-generic.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@types-generic.stef.snap similarity index 98% rename from crates/stef-build/tests/snapshots/parser__compile@types-generic.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@types-generic.stef.snap index b31c7f2..25d4fe8 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@types-generic.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@types-generic.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "struct Sample {\n f1: vec @1,\n f2: hash_map @2,\n f3: hash_set @3,\n f4: option @4,\n f5: non_zero @5,\n}" input_file: crates/stef-parser/tests/inputs/types-generic.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@types-nested.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@types-nested.stef.snap similarity index 96% rename from crates/stef-build/tests/snapshots/parser__compile@types-nested.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@types-nested.stef.snap index 8abef5e..c1f5e5c 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@types-nested.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@types-nested.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "struct Sample {\n value: vec>>>> @1,\n}" input_file: crates/stef-parser/tests/inputs/types-nested.stef --- diff --git a/crates/stef-build/tests/snapshots/parser__compile@types-ref.stef.snap b/crates/stef-build/tests/snapshots/compiler__compile@types-ref.stef.snap similarity index 97% rename from crates/stef-build/tests/snapshots/parser__compile@types-ref.stef.snap rename to crates/stef-build/tests/snapshots/compiler__compile@types-ref.stef.snap index feac692..7732a22 100644 --- a/crates/stef-build/tests/snapshots/parser__compile@types-ref.stef.snap +++ b/crates/stef-build/tests/snapshots/compiler__compile@types-ref.stef.snap @@ -1,5 +1,5 @@ --- -source: crates/stef-build/tests/parser.rs +source: crates/stef-build/tests/compiler.rs expression: "struct Sample {\n basic: Test123 @1,\n with_generics: KeyValue @2,\n}" input_file: crates/stef-parser/tests/inputs/types-ref.stef ---