Skip to content

Commit

Permalink
Address lints and general test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
another-rex committed Oct 18, 2024
1 parent b6ba7e6 commit a82f695
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,43 +20,36 @@ func TestMavenResolverExtractor_FileRequired(t *testing.T) {
t.Parallel()

tests := []struct {
name string
path string
want bool
}{
{
name: "",
path: "",
want: false,
},
{
name: "",
path: "pom.xml",
want: true,
},
{
name: "",
path: "path/to/my/pom.xml",
want: true,
},
{
name: "",
path: "path/to/my/pom.xml/file",
want: false,
},
{
name: "",
path: "path/to/my/pom.xml.file",
want: false,
},
{
name: "",
path: "path.to.my.pom.xml",
want: false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Run(tt.path, func(t *testing.T) {
t.Parallel()
e := pomxmlnet.Extractor{}
got := e.FileRequired(tt.path, nil)
Expand All @@ -68,6 +61,8 @@ func TestMavenResolverExtractor_FileRequired(t *testing.T) {
}

func TestExtractor_Extract(t *testing.T) {
t.Parallel()

tests := []extracttest.TestTableEntry{
{
Name: "Not a pom file",
Expand Down Expand Up @@ -266,7 +261,7 @@ func TestExtractor_Extract_WithMockServer(t *testing.T) {
t.Parallel()

tt := extracttest.TestTableEntry{
Name: "with parent",
// Name: "with parent",
InputConfig: extracttest.ScanInputMockConfig{
Path: "testdata/maven/with-parent.xml",
},
Expand Down

0 comments on commit a82f695

Please sign in to comment.