Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@veyndan
Copy link
Contributor

@veyndan veyndan commented Aug 1, 2020

The old spec only tested the presence of a report when there is something to report. This PR adds tests to ensure that there are no reports when there is nothing to report (i.e., the methods are being used in the correct context).

@codecov
Copy link

codecov bot commented Aug 1, 2020

Codecov Report

Merging #2918 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2918   +/-   ##
=========================================
  Coverage     80.23%   80.23%           
- Complexity     2449     2451    +2     
=========================================
  Files           421      421           
  Lines          7406     7406           
  Branches       1355     1355           
=========================================
  Hits           5942     5942           
  Misses          764      764           
  Partials        700      700           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9e14c7b...4c5d7d9. Read the comment docs.

Copy link
Member

@schalkms schalkms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for improving detekt's test base!

@schalkms schalkms merged commit 8ec8c58 into detekt:master Aug 1, 2020
@veyndan veyndan deleted the housekeeping/UselessCallOnNotNull-negative-test-cases branch August 1, 2020 17:07
@arturbosch arturbosch added this to the 1.10.1 milestone Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants