Ana içeriğe geç

Birim Testleri

Canlı kurucu veya Docker daemon gerektirmeyen otomatik Go testleri.

Çalıştırma

text go test ./... -count=1 go test -race ./... # cgo ister; SKIPPED olabilir

Paketler (*_test.go dosyalarından)

Alan Dosyalar Ne iddia eder
Config internal/config/config_test.go, load_envfile_test.go Varsayılan, env, TLS, public URL, Mongo redaksiyon, actor formatı, tenant çifti
Auth internal/auth/credentials_test.go, token_service_test.go, handler_test.go Client credentials, JWT, Bearer middleware
HTTP sunucu internal/httpserver/server_test.go, auth_router_test.go Kök, request ID, public health, auth açıkken korumalı inbound
Middleware / yanıt / health middleware_test.go, response_test.go, health/handler_test.go Request ID, panic, gövde limiti, zarflar, live/ready/details
Tenant / idempotency tenant/resolve_test.go, idempotency/key_test.go, memory_store_test.go Tenant fallback, anahtar, bellek lease/replay
Command / app command_test.go, service_cli_test.go, app/notify_context_test.go CLI, boş migration registry mesajı, SIGTERM
Windows service Go windowsservice/imagepath_test.go, parse_test.go ImagePath tırnaklama, parse; canlı SCM değil
Outbound internal/outbound/performance/*_test.go, machineevents/*_test.go, normalize, bsonutil Hesaplar, sorgu kuralları, JSON/XML handler, esnek BSON

Inbound birim kapsamı API / inbound, doğrulama, JSON ve XML sayfalarına bölünmüştür.

Bu testler OTOMATİKTİR. Windows/Linux canlı E2E değildir.