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

Parameterise "StatusCounter" tests (#973) #979

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Parameterise "StatusCounter" tests (#973) #979

wants to merge 2 commits into from

Conversation

ghostcity
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Nov 22, 2020

Codecov Report

Merging #979 (88975a4) into master (039da58) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #979      +/-   ##
============================================
- Coverage     97.94%   97.93%   -0.01%     
  Complexity      557      557              
============================================
  Files            54       54              
  Lines          1166     1164       -2     
  Branches        106      106              
============================================
- Hits           1142     1140       -2     
  Misses            9        9              
  Partials         15       15              
Impacted Files Coverage Δ Complexity Δ
...erthought/cucumber/json/support/StatusCounter.java 100.00% <100.00%> (ø) 13.00 <1.00> (ø)

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 039da58...88975a4. Read the comment docs.

@@ -76,7 +73,7 @@ public int getValueFor(Status status) {
* @return sum of all occurrences for all statuses
*/
public int size() {
return size;
return counter.values().stream().mapToInt(Integer::valueOf).sum();
Copy link
Owner

Choose a reason for hiding this comment

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

nice but rather not very efficient if size() is invoked often and report is big

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.

None yet

3 participants