aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-17 13:07:12 +0900
committerOphestra <cat@gensokyo.uk>2026-05-17 15:56:53 +0900
commit30eb0d6a613ad268f6805ccbcdcabf158e7f526f (patch)
tree07e55baa52748fd139e183017eeb43f5f64cee59 /cmd/mbf/main_test.go
parentc2ff9c9fa55ea569a5e70ee90d2eb0b2ee2a0540 (diff)
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>
Diffstat (limited to 'cmd/mbf/main_test.go')
-rw-r--r--cmd/mbf/main_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/mbf/main_test.go b/cmd/mbf/main_test.go
index a5b33e90..4554b250 100644
--- a/cmd/mbf/main_test.go
+++ b/cmd/mbf/main_test.go
@@ -9,7 +9,7 @@ import (
)
func TestMain(m *testing.M) {
- rosa.DropCaches("", rosa.OptLLVMNoLTO)
+ rosa.Native().DropCaches("", rosa.OptLLVMNoLTO)
os.Exit(m.Run())
}
@@ -35,10 +35,10 @@ func TestCureAll(t *testing.T) {
}
})
- for i := range rosa.PresetEnd {
- p := rosa.PArtifact(i)
- t.Run(rosa.GetMetadata(p).Name, func(t *testing.T) {
- _, err := cureRemote(t.Context(), &addr, rosa.Std.Load(p), 0)
+ for _, handle := range rosa.Native().Collect() {
+ a, _ := rosa.Native().MustLoad(rosa.Std, handle)
+ t.Run(rosa.Native().MustGet(handle).Name, func(t *testing.T) {
+ _, err := cureRemote(t.Context(), &addr, a, 0)
if err != nil {
t.Error(err)
}