diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-17 15:35:58 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-17 15:39:03 +0900 |
| commit | 6d015a949e27f20c86409c7d78053f0b0493f165 (patch) | |
| tree | 4d2bc1e9596fa30ea03e4c0cc575e6a7a969249d /container/check/overlay_test.go | |
| parent | e9a72490db44426605debd3cc756a7924931d706 (diff) | |
check: move from container
This package is not container specific, and widely used across the project.
Signed-off-by: Ophestra <cat@gensokyo.uk>
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) - } - }) - } -} |
