-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish TestEmitMessage, fix writer short write bug
email/message.go is now 100% covered. Though I may reorganize the tests and helpers further, I'm generally pleased with how the tests turned out. Also fixes a latent bug in writer.Write that would result in io.ErrShortWrite errors. Per the comment from the new ReturnsInputLenAfterErrToAvoidIoErrShortWrite test case: From: https://pkg.go.dev/io#pkg-variables > ErrShortWrite means that a write accepted fewer bytes than requested > but failed to return an explicit error. This bug was originally surfaced by TestEmitMessage/ReturnsWriteErrors.
- Loading branch information
Showing
2 changed files
with
108 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters