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

d--j / go-milter / 14384478654
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: copilot/improve-slow-code-performance
DEFAULT BRANCH: main
Ran 10 Apr 2025 03:34PM UTC
Jobs 1
Files 28
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

10 Apr 2025 03:32PM UTC coverage: 90.669% (-1.4%) from 92.081%
14384478654

Pull #34

github

d--j
refactor: update Milter interface & introduce Modifier interface

BREAKING CHANGE: One Milter instance will now handle one milter connection. It must be able to handle multiple messages. To facilitate this, a new method NewConnection was added to the Milter interface.

BREAKING CHANGE: The struct Modifier was changed to an interface Modifier.
All Milter implementations need to use `m milter.Modifier` instead of `m *milter.Modifier` in their arguments.
This improves the testability of Milter implementations since you can easily create mock Modifier implementations that can be passed in to your own Milter implementations (that was not possible before)

BREAKING CHANGE: the default read timeout for Server changed from 10 seconds to 0 seconds. The 10 seconds default was actually not used - we always used 0 (no timeout) before, so this should not really be a breaking change.
Pull Request #34: refactor: update Milter interface & introduce Modifier interface

317 of 430 new or added lines in 9 files covered. (73.72%)

5 existing lines in 2 files now uncovered.

3780 of 4169 relevant lines covered (90.67%)

1077023.27 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
91.67
-3.37% mailfilter/mailfilter.go
5
90.74
-9.26% internal/wire/wire.go
9
87.69
-4.5% server.go
17
86.69
-3.52% mailfilter/backend.go
23
83.9
-2.05% session.go
55
0.0
internal/wire/wire_string.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.67
-3.37% mailfilter/mailfilter.go
4
83.9
-2.05% session.go
Jobs
ID Job ID Ran Files Coverage
1 14384478654.1 10 Apr 2025 03:34PM UTC 28
90.67
GitHub Action Run
Source Files on build 14384478654
  • Tree
  • List 28
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #34
  • PR Base - main (#14276609401)
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