diff options
Diffstat (limited to 'internal/rosa/state_test.go')
| -rw-r--r-- | internal/rosa/state_test.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/internal/rosa/state_test.go b/internal/rosa/state_test.go new file mode 100644 index 00000000..2b951a24 --- /dev/null +++ b/internal/rosa/state_test.go @@ -0,0 +1,33 @@ +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() + } +} |
