aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/output_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-09 05:04:08 +0900
committerOphestra <cat@gensokyo.uk>2025-10-09 05:18:19 +0900
commit87b5c30ef6d5b7b8a10d6a5a8610054c403923e6 (patch)
tree805116c39a623bb30fc532af47ea3ed78b7304c0 /system/output_test.go
parentdf9b77b077d967d35082adb8ab3b00dd67d7bc97 (diff)
message: relocate from container
This package is quite useful. This change allows it to be imported without importing container. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/output_test.go')
-rw-r--r--system/output_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/output_test.go b/system/output_test.go
index b144d79c..d395b13c 100644
--- a/system/output_test.go
+++ b/system/output_test.go
@@ -9,6 +9,7 @@ import (
"testing"
"hakurei.app/container"
+ "hakurei.app/message"
)
func TestOpError(t *testing.T) {
@@ -64,13 +65,13 @@ func TestOpError(t *testing.T) {
})
t.Run("msg", func(t *testing.T) {
- if got, ok := container.GetErrorMessage(tc.err); !ok {
+ if got, ok := message.GetMessage(tc.err); !ok {
if tc.msg != "" {
- t.Errorf("GetErrorMessage: err does not implement MessageError")
+ t.Errorf("GetMessage: err does not implement MessageError")
}
return
} else if got != tc.msg {
- t.Errorf("GetErrorMessage: %q, want %q", got, tc.msg)
+ t.Errorf("GetMessage: %q, want %q", got, tc.msg)
}
})
})