aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/internal/pkgserver/api_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/internal/pkgserver/api_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/internal/pkgserver/api_test.go')
-rw-r--r--cmd/mbf/internal/pkgserver/api_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/mbf/internal/pkgserver/api_test.go b/cmd/mbf/internal/pkgserver/api_test.go
index 3a9945da..1552fec9 100644
--- a/cmd/mbf/internal/pkgserver/api_test.go
+++ b/cmd/mbf/internal/pkgserver/api_test.go
@@ -31,7 +31,7 @@ func TestAPIInfo(t *testing.T) {
checkPayload(t, resp, struct {
Count int `json:"count"`
HakureiVersion string `json:"hakurei_version"`
- }{len(rosa.Native().Collect()), info.Version()})
+ }{len(rosa.Collect()), info.Version()})
}
func TestAPIGet(t *testing.T) {
@@ -92,7 +92,7 @@ func TestAPIGet(t *testing.T) {
)
})
- count := len(rosa.Native().Collect())
+ count := len(rosa.Collect())
t.Run("index", func(t *testing.T) {
t.Parallel()
checkValidate(