aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/info_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-08-25 13:57:38 +0900
committerOphestra <cat@gensokyo.uk>2026-08-25 14:00:42 +0900
commitac7abbbe3fa2eea01defb670abc7dc1dc336cf21 (patch)
treecb8c451110acbd394667e94ae66c53dc422398b8 /cmd/mbf/info_test.go
parent7ee5d5368de5494350e7766a595c2bdc8f01ce80 (diff)
internal/rosa: read-only access to built-ins
This removes potential footguns caused by mutable builtins without requiring unnecessary clones. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/info_test.go')
-rw-r--r--cmd/mbf/info_test.go15
1 files changed, 7 insertions, 8 deletions
diff --git a/cmd/mbf/info_test.go b/cmd/mbf/info_test.go
index 80653f20..d85266ef 100644
--- a/cmd/mbf/info_test.go
+++ b/cmd/mbf/info_test.go
@@ -21,13 +21,12 @@ import (
func TestInfo(t *testing.T) {
t.Parallel()
- _t := rosa.Native().Std()
- qemuMeta, _ := _t.Load(rosa.H("qemu"))
- glibMeta, _ := _t.Load(rosa.H("glib"))
- zlibMeta, zlib := _t.Load(rosa.H("zlib"))
- zstdMeta, _ := _t.Load(rosa.H("zstd"))
- hakureiMeta, _ := _t.Load(rosa.H("hakurei"))
- hakureiDistMeta, _ := _t.Load(rosa.H("hakurei-dist"))
+ qemuMeta, _ := rosa.MustLoad(rosa.H("qemu"))
+ glibMeta, _ := rosa.MustLoad(rosa.H("glib"))
+ zlibMeta, zlib := rosa.MustLoad(rosa.H("zlib"))
+ zstdMeta, _ := rosa.MustLoad(rosa.H("zstd"))
+ hakureiMeta, _ := rosa.MustLoad(rosa.H("hakurei"))
+ hakureiDistMeta, _ := rosa.MustLoad(rosa.H("hakurei-dist"))
testCases := []struct {
name string
@@ -140,7 +139,7 @@ status : not in report
if tc.status != nil {
for name, status := range tc.status {
- _, a := _t.Load(rosa.ArtifactH(unique.Make(name)))
+ _, a := rosa.Load(rosa.ArtifactH(unique.Make(name)))
if a == nil {
t.Fatalf("invalid name %q", name)
}