Skip to content

Increase test coverage

Saikat Sarkar requested to merge add_test into master

What does this MR do?

In this MR, we added more unit tests to increase the test coverage for different files in spotbugs.

Before

➜  spotbugs git:(master) go test -cover instance/instance.go instance/instance_test.go
PASS | command-line-arguments 0.150s
COVER| 52.6% [#####_____]

After

➜  spotbugs git:(add_test) go test -cover instance/instance.go instance/instance_test.go
PASS | command-line-arguments 0.146s
COVER| 86.8% [########__]

What are the relevant issue numbers?

gitlab-org/gitlab#214982 (closed)

Does this MR meet the acceptance criteria?

Edited by Zach Rice

Merge request reports