aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/azalea/evaluate_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-22 19:41:45 +0900
committerOphestra <cat@gensokyo.uk>2026-11-22 19:43:28 +0900
commit4a197313d58abc9ef249be9e1934b98dbbee93cb (patch)
treeac41a0bd33eb0183206d4220360fa0545353a26b /internal/rosa/azalea/evaluate_test.go
parentf7c725ea5722959145db51847214897bad8e8b01 (diff)
internal/rosa/azalea: argument substitutions
These are run before the value is ever used. For implementing the source TOFU update helper. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/azalea/evaluate_test.go')
-rw-r--r--internal/rosa/azalea/evaluate_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/azalea/evaluate_test.go b/internal/rosa/azalea/evaluate_test.go
index edd72432..45a23e2c 100644
--- a/internal/rosa/azalea/evaluate_test.go
+++ b/internal/rosa/azalea/evaluate_test.go
@@ -324,7 +324,7 @@ func TestEvaluate(t *testing.T) {
}
set = true
return
- }, tc.s, expr)
+ }, tc.s, nil, expr)
if set != (err == nil) {
t.Error("Evaluate: unexpected unset")
}
@@ -417,7 +417,7 @@ func TestEvaluateGCC(t *testing.T) {
unique.Make(Ident("value")): "\xfd",
}},
},
- }}, gcc); err != nil {
+ }}, nil, gcc); err != nil {
t.Fatal(err)
} else if r != "\x00" {
t.Fatalf("package: %q", r)
@@ -520,7 +520,7 @@ func BenchmarkEvaluate(b *testing.B) {
FArgs,
) (v any, set bool, err error) {
return
- }, s, gcc); err != nil {
+ }, s, nil, gcc); err != nil {
b.Fatal(err)
}
}