diff options
Diffstat (limited to 'container/check/overlay_test.go')
| -rw-r--r-- | container/check/overlay_test.go | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/container/check/overlay_test.go b/container/check/overlay_test.go deleted file mode 100644 index 8fdcd69f..00000000 --- a/container/check/overlay_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package check_test - -import ( - "testing" - - "hakurei.app/container/check" -) - -func TestEscapeOverlayDataSegment(t *testing.T) { - t.Parallel() - - testCases := []struct { - name string - s string - want string - }{ - {"zero", "", ""}, - {"multi", `\\\:,:,\\\`, `\\\\\\\:\,\:\,\\\\\\`}, - {"bwrap", `/path :,\`, `/path \:\,\\`}, - } - - for _, tc := range testCases { - t.Run(tc.name, func(t *testing.T) { - t.Parallel() - - if got := check.EscapeOverlayDataSegment(tc.s); got != tc.want { - t.Errorf("escapeOverlayDataSegment: %s, want %s", got, tc.want) - } - }) - } -} |
