aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-07 18:04:59 +0900
committerOphestra <cat@gensokyo.uk>2026-05-07 19:43:06 +0900
commit8d72b9e5bd8d99cbd32ce0ebe2f5da8e9b1d88ce (patch)
tree403a00ccd0d1ed98795a4e739b72f2de12b34102 /internal/pkg/pkg_test.go
parent8a3c3d145a560b91da1d9bce9070c20289b63502 (diff)
internal/pkg: optionally register binfmt
This transparently supports curing foreign exec artifacts. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg_test.go')
-rw-r--r--internal/pkg/pkg_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go
index 04bd665f..75f14a0e 100644
--- a/internal/pkg/pkg_test.go
+++ b/internal/pkg/pkg_test.go
@@ -1289,6 +1289,11 @@ func TestErrors(t *testing.T) {
{"UnsupportedVariantError", pkg.UnsupportedVariantError(
"rosa",
), `unsupported variant "rosa"`},
+
+ {"UnsupportedArchError zero", pkg.UnsupportedArchError(""),
+ "invalid architecture name"},
+ {"UnsupportedArchError", pkg.UnsupportedArchError("riscv64"),
+ "unsupported architecture riscv64"},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {