All checks were successful
Test / Create distribution (push) Successful in 1m4s
Test / Sandbox (push) Successful in 2m57s
Test / ShareFS (push) Successful in 3m45s
Test / Hakurei (push) Successful in 3m50s
Test / Sandbox (race detector) (push) Successful in 5m19s
Test / Hakurei (race detector) (push) Successful in 6m31s
Test / Flake checks (push) Successful in 1m17s
This cleans up many function signatures. Signed-off-by: Ophestra <cat@gensokyo.uk>
34 lines
486 B
Go
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()
|
|
}
|
|
}
|