Skip to content

Commit

Permalink
test: adjust yarn lock parser case names to match parser function name (
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jun 24, 2022
1 parent 6a5cb80 commit 3e8d473
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions pkg/lockfile/parse-yarn-lock-v1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestParseYarnLock_v1_FileDoesNotExist(t *testing.T) {
expectPackages(t, packages, []lockfile.PackageDetails{})
}

func TestYarnLock_v1_NoPackages(t *testing.T) {
func TestParseYarnLock_v1_NoPackages(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/empty.v1.lock")
Expand All @@ -26,7 +26,7 @@ func TestYarnLock_v1_NoPackages(t *testing.T) {
expectPackages(t, packages, []lockfile.PackageDetails{})
}

func TestYarnLock_v1_OnePackage(t *testing.T) {
func TestParseYarnLock_v1_OnePackage(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/one-package.v1.lock")
Expand All @@ -44,7 +44,7 @@ func TestYarnLock_v1_OnePackage(t *testing.T) {
})
}

func TestYarnLock_v1_TwoPackages(t *testing.T) {
func TestParseYarnLock_v1_TwoPackages(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/two-packages.v1.lock")
Expand All @@ -67,7 +67,7 @@ func TestYarnLock_v1_TwoPackages(t *testing.T) {
})
}

func TestYarnLock_v1_MultipleVersions(t *testing.T) {
func TestParseYarnLock_v1_MultipleVersions(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/multiple-versions.v1.lock")
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestYarnLock_v1_MultipleVersions(t *testing.T) {
})
}

func TestYarnLock_v1_MultipleConstraints(t *testing.T) {
func TestParseYarnLock_v1_MultipleConstraints(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/multiple-constraints.v1.lock")
Expand All @@ -123,7 +123,7 @@ func TestYarnLock_v1_MultipleConstraints(t *testing.T) {
})
}

func TestYarnLock_v1_ScopedPackages(t *testing.T) {
func TestParseYarnLock_v1_ScopedPackages(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/scoped-packages.v1.lock")
Expand All @@ -146,7 +146,7 @@ func TestYarnLock_v1_ScopedPackages(t *testing.T) {
})
}

func TestYarnLock_v1_VersionsWithBuildString(t *testing.T) {
func TestParseYarnLock_v1_VersionsWithBuildString(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/versions-with-build-strings.v1.lock")
Expand Down Expand Up @@ -184,7 +184,7 @@ func TestYarnLock_v1_VersionsWithBuildString(t *testing.T) {
})
}

func TestYarnLock_v1_Commits(t *testing.T) {
func TestParseYarnLock_v1_Commits(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/commits.v1.lock")
Expand Down Expand Up @@ -305,7 +305,7 @@ func TestYarnLock_v1_Commits(t *testing.T) {
})
}

func TestYarnLock_v1_Files(t *testing.T) {
func TestParseYarnLock_v1_Files(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/files.v1.lock")
Expand Down
16 changes: 8 additions & 8 deletions pkg/lockfile/parse-yarn-lock-v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestParseYarnLock_v2_FileDoesNotExist(t *testing.T) {
expectPackages(t, packages, []lockfile.PackageDetails{})
}

func TestYarnLock_v2_NoPackages(t *testing.T) {
func TestParseYarnLock_v2_NoPackages(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/empty.v2.lock")
Expand All @@ -26,7 +26,7 @@ func TestYarnLock_v2_NoPackages(t *testing.T) {
expectPackages(t, packages, []lockfile.PackageDetails{})
}

func TestYarnLock_v2_OnePackage(t *testing.T) {
func TestParseYarnLock_v2_OnePackage(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/one-package.v2.lock")
Expand All @@ -44,7 +44,7 @@ func TestYarnLock_v2_OnePackage(t *testing.T) {
})
}

func TestYarnLock_v2_TwoPackages(t *testing.T) {
func TestParseYarnLock_v2_TwoPackages(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/two-packages.v2.lock")
Expand All @@ -67,7 +67,7 @@ func TestYarnLock_v2_TwoPackages(t *testing.T) {
})
}

func TestYarnLock_v2_MultipleVersions(t *testing.T) {
func TestParseYarnLock_v2_MultipleVersions(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/multiple-versions.v2.lock")
Expand Down Expand Up @@ -95,7 +95,7 @@ func TestYarnLock_v2_MultipleVersions(t *testing.T) {
})
}

func TestYarnLock_v2_ScopedPackages(t *testing.T) {
func TestParseYarnLock_v2_ScopedPackages(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/scoped-packages.v2.lock")
Expand Down Expand Up @@ -123,7 +123,7 @@ func TestYarnLock_v2_ScopedPackages(t *testing.T) {
})
}

func TestYarnLock_v2_VersionsWithBuildString(t *testing.T) {
func TestParseYarnLock_v2_VersionsWithBuildString(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/versions-with-build-strings.v2.lock")
Expand Down Expand Up @@ -151,7 +151,7 @@ func TestYarnLock_v2_VersionsWithBuildString(t *testing.T) {
})
}

func TestYarnLock_v2_Commits(t *testing.T) {
func TestParseYarnLock_v2_Commits(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/commits.v2.lock")
Expand Down Expand Up @@ -206,7 +206,7 @@ func TestYarnLock_v2_Commits(t *testing.T) {
})
}

func TestYarnLock_v2_Files(t *testing.T) {
func TestParseYarnLock_v2_Files(t *testing.T) {
t.Parallel()

packages, err := lockfile.ParseYarnLock("fixtures/yarn/files.v2.lock")
Expand Down

0 comments on commit 3e8d473

Please sign in to comment.