From 30eb0d6a613ad268f6805ccbcdcabf158e7f526f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 17 May 2026 13:07:12 +0900 Subject: internal/rosa: key metadata by string For upcoming azalea integration. The API is quite ugly right now to ease migration. Signed-off-by: Ophestra --- cmd/mbf/main_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cmd/mbf/main_test.go') 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) } -- cgit v1.3.1