aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/kunwardeep
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-07-20 10:46:22 +0200
committerTaras Madan <tarasmadan@google.com>2023-07-20 12:32:54 +0000
commit1b601bfed3244691624357968d5d018b50bffc5a (patch)
tree2b7ff934678209301df15f54f56e942284837108 /vendor/github.com/kunwardeep
parent75ccff38aa5f5663fd1280a4a78cc0e34212e4db (diff)
go.mod: update golangci-lint to 1.53.3
Diffstat (limited to 'vendor/github.com/kunwardeep')
-rw-r--r--vendor/github.com/kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/github.com/kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go b/vendor/github.com/kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go
index c7da52a20..9c2fbb986 100644
--- a/vendor/github.com/kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go
+++ b/vendor/github.com/kunwardeep/paralleltest/pkg/paralleltest/paralleltest.go
@@ -249,7 +249,9 @@ func isTestFunction(funcDecl *ast.FuncDecl) (bool, string) {
if selectExpr, ok := starExp.X.(*ast.SelectorExpr); ok {
if selectExpr.Sel.Name == testMethodStruct {
if s, ok := selectExpr.X.(*ast.Ident); ok {
- return s.Name == testMethodPackageType, param.Names[0].Name
+ if len(param.Names) > 0 {
+ return s.Name == testMethodPackageType, param.Names[0].Name
+ }
}
}
}