From 1f0226f7e01822a2a5b37d8626b59b7b6f4d0144 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 23:56:19 +0900 Subject: container/check: relocate overlay escape This is used in hst to format strings. Signed-off-by: Ophestra --- container/mount_test.go | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'container/mount_test.go') 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) - } - }) - } -} -- cgit v1.3.1