diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-17 16:44:13 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-17 17:50:30 +0900 |
| commit | 38bc2c750842826c5af4f66abe3e1905258cd274 (patch) | |
| tree | 75e1d17961fd980ff8b20a9dfd937789de10836e /internal/rosa/rosa_test.go | |
| parent | 30eb0d6a613ad268f6805ccbcdcabf158e7f526f (diff) | |
internal/rosa: pass stage alongside state
This cleans up many function signatures.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/rosa_test.go')
| -rw-r--r-- | internal/rosa/rosa_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/rosa_test.go b/internal/rosa/rosa_test.go index f9dcb1a2..5a80ba32 100644 --- a/internal/rosa/rosa_test.go +++ b/internal/rosa/rosa_test.go @@ -78,7 +78,7 @@ func TestCureAll(t *testing.T) { t.Parallel() for _, p := range rosa.Native().Collect() { - a, _ := rosa.Native().Load(rosa.Std, p) + a, _ := rosa.Native().Std().MustLoad(p) meta := rosa.Native().MustGet(p) t.Run(meta.Name, func(t *testing.T) { t.Parallel() @@ -93,13 +93,13 @@ func TestCureAll(t *testing.T) { } func BenchmarkStage3(b *testing.B) { - s := rosa.Native().Clone() + t := rosa.Native().Clone().Std() for b.Loop() { - s.Load(rosa.Std, rosa.LLVM) + t.MustLoad(rosa.LLVM) b.StopTimer() - s.DropCaches("", 0) + t.DropCaches("", 0) b.StartTimer() } } |
