aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/path_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-07 20:06:26 +0900
committerOphestra <cat@gensokyo.uk>2025-10-07 20:57:58 +0900
commit0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (patch)
treedfe9c40ceb8c1be8d2728a2db9017bffef174d3d /internal/path_test.go
parentd23b4dc9e64d3f00e746c65f3038a1a6de44b8f5 (diff)
container/check: move absolute pathname
This allows use of absolute pathname values without importing container. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/path_test.go')
-rw-r--r--internal/path_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/path_test.go b/internal/path_test.go
index 97a8f926..cb4571ef 100644
--- a/internal/path_test.go
+++ b/internal/path_test.go
@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
- "hakurei.app/container"
+ "hakurei.app/container/check"
)
func TestMustCheckPath(t *testing.T) {
@@ -35,7 +35,7 @@ func TestMustCheckPath(t *testing.T) {
}
}
- if got := mustCheckPath(fatal, "test", tc.pathname); got != nil && !reflect.DeepEqual(got, container.MustAbs(tc.pathname)) {
+ if got := mustCheckPath(fatal, "test", tc.pathname); got != nil && !reflect.DeepEqual(got, check.MustAbs(tc.pathname)) {
t.Errorf("mustCheckPath: %q", got)
}
})