Skip to content

Add non-affirming test cases for UselessCallOnNotNull#2918

Merged
schalkms merged 1 commit into
detekt:masterfrom
veyndan:housekeeping/UselessCallOnNotNull-negative-test-cases
Aug 1, 2020
Merged

Add non-affirming test cases for UselessCallOnNotNull#2918
schalkms merged 1 commit into
detekt:masterfrom
veyndan:housekeeping/UselessCallOnNotNull-negative-test-cases

Conversation

@veyndan

@veyndan veyndan commented Aug 1, 2020

Copy link
Copy Markdown
Contributor

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

codecov Bot commented Aug 1, 2020

Copy link
Copy Markdown

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.

@schalkms schalkms left a comment

Copy link
Copy Markdown
Member

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