aboutsummaryrefslogtreecommitdiff
path: root/internal/ctlsock/sanitize_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-05-09 17:36:41 +0200
committerJakob Unterwurzacher2020-05-09 17:36:41 +0200
commit16221facb9066ccf03015ccfe9e7ca784b0d2099 (patch)
tree46abce23a8592542563deb463a98d4318deb24af /internal/ctlsock/sanitize_test.go
parent3ef563493a9d0774513ec0d6aab4cfbc0f6334e5 (diff)
ctlsock: create exported ctlsock client library
The former interal ctlsock server package is renamed to ctlsocksrv.
Diffstat (limited to 'internal/ctlsock/sanitize_test.go')
-rw-r--r--internal/ctlsock/sanitize_test.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/internal/ctlsock/sanitize_test.go b/internal/ctlsock/sanitize_test.go
deleted file mode 100644
index d79fa7c..0000000
--- a/internal/ctlsock/sanitize_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package ctlsock
-
-import (
- "testing"
-)
-
-func TestSanitizePath(t *testing.T) {
- testCases := [][]string{
- {"", ""},
- {".", ""},
- {"/", ""},
- {"foo", "foo"},
- {"/foo", "foo"},
- {"foo/", "foo"},
- {"/foo/", "foo"},
- {"/foo/./foo", "foo/foo"},
- {"./", ""},
- {"..", ""},
- {"foo/../..", ""},
- {"foo/../../aaaaaa", ""},
- {"/foo/../../aaaaaa", ""},
- {"/////", ""},
- }
- for _, tc := range testCases {
- res := SanitizePath(tc[0])
- if res != tc[1] {
- t.Errorf("%q: got %q, want %q", tc[0], res, tc[1])
- }
- }
-}