From feff62b8fcff9709dc6c7f0b56ce80a288367f29 Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Thu, 26 Mar 2020 22:03:15 +0000 Subject: Standardize the project layout https://github.com/golang-standards/project-layout seems sensible. --- lib/lib_test.go | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 lib/lib_test.go (limited to 'lib/lib_test.go') diff --git a/lib/lib_test.go b/lib/lib_test.go deleted file mode 100644 index 7b46bfb..0000000 --- a/lib/lib_test.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2019, Grégoire Duchêne -// -// Use of this source code is governed by the ISC license that can be -// found in the LICENSE file. - -package lib - -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) - } - } -} -- cgit v1.2.3-70-g09d2