Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add non-affirming test cases for UselessCallOnNotNull #2918

Merged
merged 1 commit into from
Aug 1, 2020
Merged

Add non-affirming test cases for UselessCallOnNotNull #2918

merged 1 commit into from
Aug 1, 2020

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