Files
hakurei/internal/rosa/state_test.go
Ophestra 916093770a
Some checks failed
Test / Create distribution (push) Failing after 50s
Test / ShareFS (push) Failing after 55s
Test / Hakurei (push) Failing after 1m11s
Test / Sandbox (race detector) (push) Failing after 1m11s
Test / Sandbox (push) Failing after 1m21s
Test / Hakurei (race detector) (push) Failing after 1m34s
Test / Flake checks (push) Has been skipped
internal/rosa: key metadata by string
For upcoming azalea integration. The API is quite ugly right now to ease migration.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-17 15:05:52 +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().Load(rosa.Std, p)
})
}
}
func BenchmarkAll(b *testing.B) {
s := rosa.Native().Clone()
for b.Loop() {
for _, p := range s.Collect() {
s.Load(rosa.Std, p)
}
b.StopTimer()
s.DropCaches("", 0)
b.StartTimer()
}
}