Files
hakurei/internal/rosa/state_test.go
Ophestra 38bc2c7508 internal/rosa: pass stage alongside state
This cleans up many function signatures.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-17 17:50:30 +09:00

34 lines
486 B
Go

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