defer reader.Close() in body_limit_test#2344
Conversation
Codecov ReportBase: 92.38% // Head: 92.59% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2344 +/- ##
==========================================
+ Coverage 92.38% 92.59% +0.20%
==========================================
Files 37 37
Lines 4454 4441 -13
==========================================
- Hits 4115 4112 -3
+ Misses 247 239 -8
+ Partials 92 90 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
it is not very useful or proper way to test If you feel that |
|
This is not useful at all. I understand that you have checked the coverage of that file and decided that out 4 places (full coverage of that file) that are not covered yet you want to cover that method. Even though reader that is being called is but you choose not to test Line 58 in 36ff0b3 Line 71 in 36ff0b3 I am going to accept this PR if you add at least one of these options: |
limitedReader.Closefunction will be tested by this change.As a result, the code coverage of
body_limitincreases.