aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/mount_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/mount_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/mount_test.go')
-rw-r--r--container/mount_test.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/container/mount_test.go b/container/mount_test.go
index 5391623c..daa2287a 100644
--- a/container/mount_test.go
+++ b/container/mount_test.go
@@ -281,23 +281,3 @@ func TestParentPerm(t *testing.T) {
})
}
}
-
-func TestEscapeOverlayDataSegment(t *testing.T) {
- testCases := []struct {
- name string
- s string
- want string
- }{
- {"zero", zeroString, zeroString},
- {"multi", `\\\:,:,\\\`, `\\\\\\\:\,\:\,\\\\\\`},
- {"bwrap", `/path :,\`, `/path \:\,\\`},
- }
-
- for _, tc := range testCases {
- t.Run(tc.name, func(t *testing.T) {
- if got := EscapeOverlayDataSegment(tc.s); got != tc.want {
- t.Errorf("escapeOverlayDataSegment: %s, want %s", got, tc.want)
- }
- })
- }
-}