diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-25 13:57:38 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-25 14:00:42 +0900 |
| commit | ac7abbbe3fa2eea01defb670abc7dc1dc336cf21 (patch) | |
| tree | cb8c451110acbd394667e94ae66c53dc422398b8 /internal/rosa/state_test.go | |
| parent | 7ee5d5368de5494350e7766a595c2bdc8f01ce80 (diff) | |
internal/rosa: read-only access to built-ins
This removes potential footguns caused by mutable builtins without requiring unnecessary clones.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state_test.go')
| -rw-r--r-- | internal/rosa/state_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
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() { |
