mirror of
https://github.com/grdl/git-get.git
synced 2026-02-07 21:39:15 +00:00
Add test parallelization and re-enable paralleltest linter
This commit is contained in:
@@ -9,6 +9,8 @@ import (
|
||||
)
|
||||
|
||||
func TestFinder(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
reposMaker func(*testing.T) string
|
||||
@@ -31,6 +33,7 @@ func TestFinder(t *testing.T) {
|
||||
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
root := test.reposMaker(t)
|
||||
|
||||
finder := NewRepoFinder(root)
|
||||
@@ -46,6 +49,8 @@ func TestFinder(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestExists(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
path string
|
||||
@@ -64,6 +69,8 @@ func TestExists(t *testing.T) {
|
||||
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
_, err := Exists(test.path)
|
||||
|
||||
assert.ErrorIs(t, err, test.want)
|
||||
|
||||
Reference in New Issue
Block a user