• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / auth / 17190789066
71%
master: 69%

Build:
Build:
LAST BUILD BRANCH: or/query_reduction
DEFAULT BRANCH: master
Ran 24 Aug 2025 04:03PM UTC
Jobs 1
Files 152
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Aug 2025 03:53PM UTC coverage: 70.723% (-0.09%) from 70.817%
17190789066

Pull #2129

github

Chris Stockton
mailer: refactor mail client wiring and add validation wrapper

This change simplifies how MailClient instances are constructed and used:

- Introduce `NewMailClient` to encapsulate creation of the default
  `MailmeMailer` or `noopMailClient` based on configuration.
- Add `NewMailerWithClient` to allow injecting a custom `MailClient`.
- Extract email validation into `emailValidatorMailClient`, which wraps
  another `MailClient` and ensures `Validate` is always called before
  sending. Removed inline validation logic from `MailmeMailer`.
- Update `TemplateMailer` to consistently use `MailClient` instead of
  the previous `Mailer` field.
- Extend `noopMailClient` with an optional `Delay` field to simulate
  latency in tests.
- Clean up struct definitions by removing redundant `EmailValidator`
  from `MailmeMailer`.

Together, these changes make the mailer package easier to extend,
improve separation of concerns, and provide hooks for testing latency
and swapping in custom mail clients.
Pull Request #2129: mailer: refactor mail client wiring and add validation wrapper

16 of 55 new or added lines in 3 files covered. (29.09%)

1 existing line in 1 file now uncovered.

12279 of 17362 relevant lines covered (70.72%)

69.85 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
42.86
-12.7% internal/mailer/noop.go
35
44.12
-23.27% internal/mailer/mailer.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
44.12
-23.27% internal/mailer/mailer.go
Jobs
ID Job ID Ran Files Coverage
1 17190789066.1 24 Aug 2025 04:03PM UTC 152
70.72
GitHub Action Run
Source Files on build 17190789066
  • Tree
  • List 152
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2129
  • PR Base - master (#17190512935)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc