Packages like cmd/api, cmd/seed, internal/logger, and internal/metrics are entrypoints and infrastructure code that don't benefit from unit tests. These were being counted as 0% coverage in CI (which has the full Go toolchain including covdata) but excluded locally (due to 'no such tool covdata' error), causing a ~2.5% coverage discrepancy. Standard Go practice is to exclude such packages from coverage calculations. This fix filters them from the coverage profile before computing the total.
2.3 KiB
Executable File
2.3 KiB
Executable File