Closed mitar closed 6 months ago
This PR is made on top of https://github.com/mocktools/go-smtp-mock/pull/173 and that one should be merged first.
Allows both getting messages and clearing them at the same time.
https://github.com/mocktools/go-smtp-mock/issues/119
In tests, it is useful to be able to reset the messages stored in the server.
I added two tests
golangci-lint run
go tool cover
I addressed comments.
I rebased this one.
New PR's you can create directly without forking due you have write access ;)
This PR is made on top of https://github.com/mocktools/go-smtp-mock/pull/173 and that one should be merged first.
PR Details
Allows both getting messages and clearing them at the same time.
Related Issue
https://github.com/mocktools/go-smtp-mock/issues/119
Motivation and Context
In tests, it is useful to be able to reset the messages stored in the server.
How Has This Been Tested
I added two tests
Types of changes
Checklist
golangci-lint run
from the root directory to see all new and existing tests passgo tool cover
to avoid test coverage degradation