Skip to content

Commit 4397833

Browse files
committed
test(nix): update the label golden now that bindings mint Variables
LABEL_GOLDENS pins the node labels each grammar emits. The nix case is `{ foo = 1; bar = 2; }` — two module-level scalar bindings — and its golden was Module:1, recorded when no Nix binding could be named and none was minted. Both are Variables now, so the golden is Module:1,Variable:2. The mismatch CI reported is the intended behaviour change, not a regression. Extraction, pipeline, grammar_labels, grammar_regression and lang_contract: 534 passed, 0 failed. Signed-off-by: Jason Bowman <jason@json64.dev>
1 parent 7f9feb6 commit 4397833

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_grammar_labels.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static const LabelGolden LABEL_GOLDENS[] = {
200200
{"gn", "Module:1"},
201201
{"just", "Function:1,Module:1"},
202202
{"hcl", "Class:1,Module:1"},
203-
{"nix", "Module:1"},
203+
{"nix", "Module:1,Variable:2"},
204204
{"gomod", "Module:1"},
205205
{"gotemplate", "Module:1"},
206206
{"graphql", "Class:1,Field:1,Module:1"},

0 commit comments

Comments
 (0)