Closed victornoel closed 5 years ago
Merging #79 into master will decrease coverage by
0.5%
. The diff coverage is90%
.
@@ Coverage Diff @@
## master #79 +/- ##
==========================================
- Coverage 95% 94.5% -0.5%
- Complexity 69 75 +6
==========================================
Files 17 19 +2
Lines 180 200 +20
Branches 20 21 +1
==========================================
+ Hits 171 189 +18
- Misses 4 6 +2
Partials 5 5
Impacted Files | Coverage Δ | Complexity Δ | |
---|---|---|---|
src/main/java/org/cactoos/http/HtResponse.java | 72.72% <ø> (ø) |
3 <0> (ø) |
:arrow_down: |
...in/java/org/cactoos/http/HtAutoClosedResponse.java | 100% <100%> (ø) |
2 <2> (?) |
|
...ava/org/cactoos/http/io/AutoClosedInputStream.java | 87.5% <87.5%> (ø) |
4 <4> (?) |
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 52e8b09...9c2c0c7. Read the comment docs.
@victornoel a couple of minor comments
@llorllale it's done, thanks
This pull request #79 is assigned to @vzurauskas/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @llorllale/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be no monetary reward for this job
@vzurauskas indeed, very good point, I removed all state from the class and only auto-close and forwards calls to read or close if reading or closing happens again.
@victornoel Looks good. But Codecov's checks are failing, it seems to want more tests.
@vzurauskas I've tried to increase coverage a bit, but I don't think I will be able to cover everything there because testing of InputStream
is quite tricky.
I've also noted your comment about this being a bit too much work, I agree, I will restrain myself in the future, thanks for the reminder.
@llorllale concerning coverage, I can add a @todo
to introduce some abstraction to better test input streams implementation and their behaviour maybe?
@victornoel @vzurauskas coverage checks are currently enforced only in cactoos-matchers :)
@vzurauskas waiting on your final verdict for this PR..
@rultor merge
@rultor merge
@llorllale OK, I'll try to merge now. You can check the progress of the merge here
@rultor merge
@llorllale Done! FYI, the full log is here (took me 12min)
@vzurauskas please make sure, that next time you will find at least 3 issues when doing a code as written in the policy
@sereshqua Will do.
@0crat quality acceptable
This is for #64.
HtAutoClosedResponse
that closes the response when EOF is reachedHtWire
but when #63 is solved, the test should still pass and prove its usefulness.@llorllale I made some design choices here, please review them carefully too :)