From ac7abbbe3fa2eea01defb670abc7dc1dc336cf21 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Aug 2026 13:57:38 +0900 Subject: internal/rosa: read-only access to built-ins This removes potential footguns caused by mutable builtins without requiring unnecessary clones. Signed-off-by: Ophestra --- internal/rosa/state_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/rosa/state_test.go') diff --git a/internal/rosa/state_test.go b/internal/rosa/state_test.go index ea4b7bf8..ad16bc26 100644 --- a/internal/rosa/state_test.go +++ b/internal/rosa/state_test.go @@ -9,17 +9,17 @@ import ( func TestLoad(t *testing.T) { t.Parallel() - for _, p := range rosa.Native().Collect() { + for _, p := range rosa.Collect() { t.Run(p.String(), func(t *testing.T) { t.Parallel() - rosa.Native().Std().MustLoad(p) + rosa.MustLoad(p) }) } } func BenchmarkAll(b *testing.B) { - t := rosa.Native().Clone().Std() + t := rosa.New().Std() for b.Loop() { for _, p := range t.Collect() { -- cgit v1.3.1