Discourage use of :nocov: code comment

Problem

The use of Simplecov's # :nocov: (see docs) code comment excludes code from the coverage report.

Currently, there are 31 instances of # :nocov::

Click to expand

Proposed solution

As mentioned by @tkuah using # :nocov: "skews the percentage % of this Performance Indicator (https://about.gitlab.com/handbook/engineering/development/performance-indicators/#backend-unit-test-coverage)".

Any code should be covered by tests/specs. For this reason we should:

Refs

!92393 (comment 1028806103)

@tkuah: I think we should discourage :nocov: as it skews the percentage % of this Performance Indicator (https://about.gitlab.com/handbook/engineering/development/performance-indicators/#backend-unit-test-coverage).

Edited by Peter Leitzen