diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-22 19:41:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-22 19:43:28 +0900 |
| commit | 4a197313d58abc9ef249be9e1934b98dbbee93cb (patch) | |
| tree | ac41a0bd33eb0183206d4220360fa0545353a26b /internal/rosa/azalea/evaluate_test.go | |
| parent | f7c725ea5722959145db51847214897bad8e8b01 (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.go | 6 |
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) } } |
