aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/mount_test.go
diff options
context:
space:
mode:
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)
- }
- })
- }
-}