Skip to content

test: share the fake IMAP and SMTP servers across packages - #149

Merged
JustMaris merged 1 commit into
mainfrom
test/shared-mail-fixtures
Oct 4, 2026
Merged

JustMaris merged 1 commit into
mainfrom
test/shared-mail-fixtures

Conversation

@JustMaris

Copy link
Copy Markdown
Member

internal/imaptest and internal/smtptest replace three copies of the
go-imap memory-server setup and two fake SMTP relays (Go can't import
_test.go helpers across packages). Also drops a dead leftover in
cmd_gaps_test, reads captured stdout with io.ReadAll and finds a free
port with net.Listen. Codecov ignores the two helper packages.

internal/imaptest and internal/smtptest replace three copies of the
go-imap memory-server setup and two fake SMTP relays (Go can't import
_test.go helpers across packages). Also drops a dead leftover in
cmd_gaps_test, reads captured stdout with io.ReadAll and finds a free
port with net.Listen. Codecov ignores the two helper packages.
@JustMaris
JustMaris merged commit acd1675 into main Oct 4, 2026
6 checks passed
@JustMaris
JustMaris deleted the test/shared-mail-fixtures branch October 4, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant