From 26ebb98d3948aae3c3cb5f538d8c2335227d8da6 Mon Sep 17 00:00:00 2001 From: Ryan Currah Date: Sun, 22 Jan 2023 22:10:45 -0500 Subject: [PATCH] chore: better tests Signed-off-by: Ryan Currah --- processor_internal_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/processor_internal_test.go b/processor_internal_test.go index 66e466a..e103915 100644 --- a/processor_internal_test.go +++ b/processor_internal_test.go @@ -113,13 +113,13 @@ 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", @@ -127,7 +127,7 @@ func Test_packageInModule(t *testing.T) { //nolint:funlen 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", @@ -135,7 +135,7 @@ func Test_packageInModule(t *testing.T) { //nolint:funlen 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", @@ -143,7 +143,7 @@ func Test_packageInModule(t *testing.T) { //nolint:funlen 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",