Skip to content

Parameterise "StatusCounter" tests (#973)#979

Open
ghostcity wants to merge 2 commits intodamianszczepanik:masterfrom
informaticum:973_parameterise_statuscounter_tests
Open

Parameterise "StatusCounter" tests (#973)#979
ghostcity wants to merge 2 commits intodamianszczepanik:masterfrom
informaticum:973_parameterise_statuscounter_tests

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.

*/
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.

3 participants