Files
hakurei/internal/rosa/state_test.go
T
cat ac7abbbe3f 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>
2026-08-25 14:00:42 +09:00

34 lines
432 B
Go

package rosa_test
import (
"testing"
"hakurei.app/internal/rosa"
)
func TestLoad(t *testing.T) {
t.Parallel()
for _, p := range rosa.Collect() {
t.Run(p.String(), func(t *testing.T) {
t.Parallel()
rosa.MustLoad(p)
})
}
}
func BenchmarkAll(b *testing.B) {
t := rosa.New().Std()
for b.Loop() {
for _, p := range t.Collect() {
t.MustLoad(p)
}
b.StopTimer()
t.DropCaches("", 0)
b.StartTimer()
}
}