Skip to content

Commit

Permalink
chore: better tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Currah <ryan@currah.ca>
  • Loading branch information
ryancurrah committed Jan 23, 2023
1 parent 1010c41 commit 26ebb98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions processor_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,37 +113,37 @@ func Test_packageInModule(t *testing.T) { //nolint:funlen
{
name: "aws v2 package should match v2 module with a package path",
args: args{
pkg: "github.com/aws/aws-sdk-go",
pkg: "github.com/aws/aws-sdk-go-v2/foo",
mod: "github.com/aws/aws-sdk-go-v2",
},
wantPkgIsInMod: false,
wantPkgIsInMod: true,
},
{
name: "package path with different major version",
name: "package with different major version",
args: args{
pkg: "github.com/foo/bar/v20",
mod: "github.com/foo/bar",
},
wantPkgIsInMod: false,
},
{
name: "package path with no major version",
name: "package with no major version",
args: args{
pkg: "github.com/foo/bar",
mod: "github.com/foo/bar/v10",
},
wantPkgIsInMod: false,
},
{
name: "module with different major version",
name: "with different major version",
args: args{
pkg: "github.com/foo/bar/v40",
mod: "github.com/foo/bar/v41",
},
wantPkgIsInMod: false,
},
{
name: "same major version",
name: "with same major version",
args: args{
pkg: "github.com/foo/bar/v50",
mod: "github.com/foo/bar/v50",
Expand Down

0 comments on commit 26ebb98

Please sign in to comment.