aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/path_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-07 23:56:19 +0900
committerOphestra <cat@gensokyo.uk>2025-10-07 23:56:19 +0900
commit1f0226f7e01822a2a5b37d8626b59b7b6f4d0144 (patch)
tree47ca771c20a1073f4c2743c7c1b4189f66ddf336 /container/path_test.go
parent584ce3da685352847e5c6189e5050bd5cb0307e9 (diff)
container/check: relocate overlay escape
This is used in hst to format strings. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/path_test.go')
-rw-r--r--container/path_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/container/path_test.go b/container/path_test.go
index 746e70fe..5af4c821 100644
--- a/container/path_test.go
+++ b/container/path_test.go
@@ -10,6 +10,7 @@ import (
"testing"
"unsafe"
+ "hakurei.app/container/check"
"hakurei.app/container/vfs"
)
@@ -49,8 +50,8 @@ func TestToHost(t *testing.T) {
}
}
-// InternalToHostOvlEscape exports toHost passed to EscapeOverlayDataSegment.
-func InternalToHostOvlEscape(s string) string { return EscapeOverlayDataSegment(toHost(s)) }
+// InternalToHostOvlEscape exports toHost passed to [check.EscapeOverlayDataSegment].
+func InternalToHostOvlEscape(s string) string { return check.EscapeOverlayDataSegment(toHost(s)) }
func TestCreateFile(t *testing.T) {
t.Run("nonexistent", func(t *testing.T) {