Unit Tests¶
Automated Go tests that do not require a live installer or Docker daemon.
How to run¶
text
go test ./... -count=1
go test -race ./... # requires cgo; may be SKIPPED
Packages (from *_test.go files)¶
| Area | Files | What they assert |
|---|---|---|
| Config | internal/config/config_test.go, load_envfile_test.go |
Defaults, env override, TLS, public URL, Mongo redaction, actor format, tenant pair |
| Auth | internal/auth/credentials_test.go, token_service_test.go, handler_test.go |
Client credentials, JWT issue/verify, Bearer middleware |
| HTTP server | internal/httpserver/server_test.go, auth_router_test.go |
Root, request ID, public health, protected inbound when auth on |
| Middleware / response / health | middleware_test.go, response_test.go, health/handler_test.go |
Request ID, panic, body limit, envelopes, live/ready/details |
| Tenant / idempotency | tenant/resolve_test.go, idempotency/key_test.go, memory_store_test.go |
Tenant fallback, key parse, in-memory lease/replay |
| Command / app | command_test.go, service_cli_test.go, app/notify_context_test.go |
CLI, empty migration registry message, SIGTERM |
| Windows service Go | windowsservice/imagepath_test.go, parse_test.go |
ImagePath quoting, parse; not live SCM |
| Outbound | internal/outbound/performance/*_test.go, machineevents/*_test.go, normalize, bsonutil |
Calculations, query rules, JSON/XML handlers, flexible BSON |
Inbound unit coverage is split across API / inbound, validation, JSON, and XML.
These tests are AUTOMATED. They are not Windows/Linux live E2E.