GoMail is a powerful library for sending emails via multiple providers, including SMTP, Gmail API, Microsoft Graph API, SendGrid, AWS SES, Mailgun, Mandrill, Postmark, and SparkPost. Supporting attachments, plain text, and HTML content, it simplifies email integration for developers with easy setup and robust functionalities.
This pull request extends the existing test suite to increase code coverage to 90%. It adds tests for various scenarios, including successful email sending, different SMTP authentication methods, handling different email content types, network failures, and invalid email addresses.
Related Issue: Closes #8
Type of Change:
New feature (non-breaking change which adds functionality)
Checklist
Please ensure the following guidelines are met:
[x] The code follows the style guidelines of this project.
[x] A self-review has been performed on the code.
[x] The code is well-documented, and comments have been added where necessary.
[x] Tests have been added to prove that the fix is effective or that the feature works. All existing tests pass.
[x] Commit messages follow the convention type(scope): description.
[x] The pull request has no conflicts with the base branch.
[x] Any dependent changes have been merged and published in downstream modules.
Additional Information
No additional dependencies are required for this change. The improvements to test coverage will enhance code reliability and maintainability.
Extend tests to achieve 90% code coverage
Description
This pull request extends the existing test suite to increase code coverage to 90%. It adds tests for various scenarios, including successful email sending, different SMTP authentication methods, handling different email content types, network failures, and invalid email addresses.
Checklist
Please ensure the following guidelines are met:
type(scope): description
.Additional Information
No additional dependencies are required for this change. The improvements to test coverage will enhance code reliability and maintainability.