Skip to content

Increase test coverage for analyze.go

Saikat Sarkar requested to merge add_test into master

What does this MR do?

Increased the test-coverage for analyze.go

Before:

➜  spotbugs git:(master) go test -cover
     | [INFO] [2020-09-16T14:55:24-06:00] ▶ Found 0 analyzable projects.
     | [INFO] [2020-09-16T14:55:24-06:00] ▶ Found 0 analyzable projects.
     | PASS
COVER| 19.5% [#_________]
PASS | gitlab.com/gitlab-org/security-products/analyzers/spotbugs/v2 0.165s

After:

➜  spotbugs git:(add_test) go test -cover
     | [INFO] [2020-09-16T16:07:29-06:00] ▶ Found 0 analyzable projects.
     | [INFO] [2020-09-16T16:07:29-06:00] ▶ Found 0 analyzable projects.
     | PASS
COVER| 28.6% [##________]
PASS | gitlab.com/gitlab-org/security-products/analyzers/spotbugs/v2 0.178s

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Lucas Charles

Merge request reports