Skip to content

Commit

Permalink
Update git action
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 committed Aug 14, 2023
1 parent 688a3ec commit d28e8cc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion commands/scanpullrequest/scanallpullrequests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

func initScanAllPullRequestsTest(t *testing.T) {
if !*utils.TestScanAllPullRequests || *utils.TestAll {
if !(*utils.TestScanAllPullRequests || *utils.TestAll) {
t.Skip("Skipping Scan All Pull Requests tests. To run Scan All Pull Requests tests add the '--test.Scan-All-Pull-Requests' option.")
}
}
Expand Down
2 changes: 1 addition & 1 deletion commands/scanpullrequest/scanpullrequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
)

func initScanPullRequestTest(t *testing.T) {
if !*utils.TestScanPullRequest || *utils.TestAll {
if !(*utils.TestScanPullRequest || *utils.TestAll) {
t.Skip("Skipping Scan Pull Request tests. To run Scan Pull Request tests add the '--test.Scan-Pull-Request' option.")
}
}
Expand Down
2 changes: 1 addition & 1 deletion commands/scanrepository/scanmultiplerepositories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var testScanMultipleRepositoriesConfigPath = filepath.Join("..", "testdata", "co
var testRepositories = []string{"pip-repo", "npm-repo", "mvn-repo"}

func initScanMultipleRepositoriesTest(t *testing.T) {
if !*utils.TestScanMultipleRepositories || *utils.TestAll {
if !(*utils.TestScanMultipleRepositories || *utils.TestAll) {
t.Skip("Skipping Scan Multiple Repositories tests. To run Scan Multiple Repositories tests add the '--test.Scan-Multiple-Repositories' option.")
}
}
Expand Down
2 changes: 1 addition & 1 deletion commands/scanrepository/scanrepository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var testPackagesData = []struct {
}

func initScanRepositoryTest(t *testing.T) {
if !*utils.TestScanRepository || *utils.TestAll {
if !(*utils.TestScanRepository || *utils.TestAll) {
t.Skip("Skipping Scan Repository tests. To run Scan Repository tests add the '--test.Scan-Repository' option.")
}
}
Expand Down
2 changes: 1 addition & 1 deletion commands/utils/depsutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
var timestamp = time.Now().Unix()

func initResolveDependencyTest(t *testing.T) {
if !*TestResolveDependency || *TestAll {
if !(*TestResolveDependency || *TestAll) {
t.Skip("Skipping Resolve Dependency tests. To run Resolve Dependency tests add the '--test.Resolve-Dependency' option.")
}
}
Expand Down
2 changes: 1 addition & 1 deletion commands/utils/packagehandlers/packagehandlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type pipPackageRegexTest struct {
}

func initPackageHandlersTest(t *testing.T) {
if !*utils.TestPackageHandlers || *utils.TestAll {
if !(*utils.TestPackageHandlers || *utils.TestAll) {
t.Skip("Skipping Package Handlers tests. To run Package Handlers tests add the '--test.Package-Handlers' option.")
}
}
Expand Down

0 comments on commit d28e8cc

Please sign in to comment.