From 16221facb9066ccf03015ccfe9e7ca784b0d2099 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 9 May 2020 17:36:41 +0200 Subject: ctlsock: create exported ctlsock client library The former interal ctlsock server package is renamed to ctlsocksrv. --- internal/ctlsock/sanitize_test.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 internal/ctlsock/sanitize_test.go (limited to 'internal/ctlsock/sanitize_test.go') 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]) - } - } -} -- cgit v1.2.3