1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-10-28 15:02:28 +00:00
Files
go-chasquid-smtp/.gitignore
T
Alberto Bertogli 8b19760f4e test: Use modern testing features instead of custom helpers
Many of our tests rely on helpers that predate features which are now
available in the standard library.

This patch replaces them with the standard equivalents:

- MustTempDir/RemoveIfOk -> t.ArtifactDir() or t.TempDir() (depending on
  whether it is useful to keep the data on request).
- GetFreePort + waitForServer -> opening the listeners before starting
  the servers. To support this, localrpc.Server gains a Serve method. We
  may re-introduce these in the future if more use cases appear.
- WaitFor and real-time timing checks -> testing/synctest.
- context.Background() -> t.Context().
- Benchmark b.N loops -> b.Loop().
- reflect.DeepEqual -> cmp.Diff, and proto.Equal for protobufs.
2026-10-03 10:34:35 +01:00

46 lines
932 B
Plaintext

# Ignore anything beginning with a dot: these are usually temporary or
# unimportant.
.*
# Exceptions to the rules above: files we care about that would otherwise be
# excluded.
!.gitignore
!.gitattributes
!.clang-format
!.github/
# The binaries.
/chasquid
/chasquid-util
/smtp-check
/mda-lmtp
/dovecot-auth-cli
cmd/chasquid-util/chasquid-util
cmd/smtp-check/smtp-check
cmd/mda-lmtp/mda-lmtp
cmd/dovecot-auth-cli/dovecot-auth-cli
# Test util binaries.
test/util/conngen/conngen
test/util/coverhtml/coverhtml
test/util/fexp/fexp
test/util/generate_cert/generate_cert
test/util/gocovcat/gocovcat
test/util/loadgen/loadgen
test/util/minidns/minidns
test/util/smtpc/smtpc
# Test binary, generated during coverage tests.
chasquid.test
# chamuyero logs
*.cmy.log
# Exclude any .pem files, to prevent accidentally including test keys and
# certificates.
*.pem
# Test artifacts, saved when running "go test -artifacts".
_artifacts/