Closed akalin-keybase closed 7 years ago
Is there a way to see which particular lines became uncovered? I don't think I removed any important coverage...
Looks like there is not :( https://github.com/lemurheavy/coveralls-public/issues/359
In general I'm much more concerned with decryption coverage than with anything else.
Yeah, I'm almost certain the coverage decrease was because I added a comment on top of an uncovered line (the TODO).
Looks like this bug is also present in go's standard library. Filed bug: https://github.com/golang/go/issues/20044
Yeah I noticed their ReadFull
function has the same behavior, because it calls ReadAtLeast
on the inside.
First bug: io.ReadAtLeast drops errors if it reads enough characters.
Second bug: both io.ReadAtLeast and punctuatedReader (among other) things return io.ErrUnexpectedEOF, so we were dropping errors from the latter.
The solution to both is to not use io.ReadAtLeast, and instead refill the buffer manually.
Reenable a test (which was hitting the second bug!).
Fix a few typos.