Verify that all packages have tests #635
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
make nocover
target (that also runs as part ofmake cover
) that checks all directories that have Go files but no test files and fails if such directories don't also have.nocover
marker, which indicates that the directories are silently excluded from code coverage. If.nocover
marker is found, it is printed, so that it's easy to find directories without code coverage. Directories withmain.go
are ignored.The script found a number of directories:
empty_test.go
file was added to thosegocql
module. A.nocover
file was added to those dirs with an explanation..nocover
file containing the wordFIXME
.The current output of nocover command looks like this:
Fixes #168
Signed-off-by: Yuri Shkuro ys@uber.com