aboutsummaryrefslogtreecommitdiff
path: root/go/vcs/vcs_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/vcs/vcs_test.go')
-rw-r--r--go/vcs/vcs_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/go/vcs/vcs_test.go b/go/vcs/vcs_test.go
index d18ff18..d17caad 100644
--- a/go/vcs/vcs_test.go
+++ b/go/vcs/vcs_test.go
@@ -52,7 +52,8 @@ func TestRepoRootForImportPath(t *testing.T) {
}
want := test.want
if got.VCS.Name != want.VCS.Name || got.Repo != want.Repo {
- t.Errorf("RepoRootForImportPath(%q) = VCS(%s) Repo(%s), want VCS(%s) Repo(%s)", test.path, got.VCS, got.Repo, want.VCS, want.Repo)
+ t.Errorf("RepoRootForImportPath(%q) = VCS(%s) Repo(%s), want VCS(%s) Repo(%s)",
+ test.path, got.VCS, got.Repo, want.VCS, want.Repo)
}
}
}
@@ -95,12 +96,13 @@ func TestFromDir(t *testing.T) {
continue
}
if got.VCS.Name != want.VCS.Name || got.Root != want.Root {
- t.Errorf("FromDir(%q, %q) = VCS(%s) Root(%s), want VCS(%s) Root(%s)", dir, tempDir, got.VCS, got.Root, want.VCS, want.Root)
+ t.Errorf("FromDir(%q, %q) = VCS(%s) Root(%s), want VCS(%s) Root(%s)",
+ dir, tempDir, got.VCS, got.Root, want.VCS, want.Root)
}
}
}
-var parseMetaGoImportsTests = []struct {
+var parseMetaGoImportsTests = []struct { //nolint: gochecknoglobals
in string
out []metaImport
}{