aboutsummaryrefslogtreecommitdiff
path: root/internal/lib_test.go
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-07-04 15:33:18 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2021-07-04 15:33:18 +0100
commit80b5a6680e2fc4d2f1e425ff2e5f1cfbbd529d9e (patch)
tree6286c7d490ebfe4b8c1013dbb2807e8c55e0d71d /internal/lib_test.go
parent8c5aaad11e949adfd1545b7802899b81f7d74ed5 (diff)
Simplify project structure
Diffstat (limited to 'internal/lib_test.go')
-rw-r--r--internal/lib_test.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/internal/lib_test.go b/internal/lib_test.go
deleted file mode 100644
index 19a880d..0000000
--- a/internal/lib_test.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) 2019, Grégoire Duchêne <gduchene@awhk.org>
-//
-// Use of this source code is governed by the ISC license that can be
-// found in the LICENSE file.
-
-package internal
-
-import "testing"
-
-func TestGetDest(t *testing.T) {
- cs := []struct{ srcPrefix, destPrefix, pkg, expected string }{
- {"src.example.com/x/", "https://example.com/git/", "src.example.com/x/foo", "https://example.com/git/foo"},
- {"src.example.com/x/", "https://example.com/git/", "src.example.com/x/foo/bar", "https://example.com/git/foo"},
- {"src.example.com/x", "https://example.com/git", "src.example.com/x/foo", "https://example.com/git/foo"},
- {"src.example.com/x", "https://example.com/git", "src.example.com/x/foo/bar", "https://example.com/git/foo"},
- }
- for _, c := range cs {
- actual := GetDest(c.srcPrefix, c.destPrefix, c.pkg)
- if actual != c.expected {
- t.Errorf("expected %s, got %s", c.expected, actual)
- }
- }
-}