internal/handlers has 4 tests: the 401 signature boundary and every error path are untested #76
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Verified against
mainat61f42e6.internal/handlershas exactly four test functions, all covering ETag/HEAD behavior onHandleImage:TestHandleImage_HEAD_ReturnsHeadersOnly,..._IfNoneMatch_Returns304,..._IfNoneMatch_DifferentETag,..._ETagHeader.This is the thinnest-tested package in the repo and the one with the most user-visible surface. Untested:
ErrSSRFBlockedErrUpstreamErrorHandleRobotsTxt,HandleHealthCheckStatus-code mapping is exactly the kind of logic that silently regresses during refactors, and #39 has more package extraction planned.
Definition of done
internal/httpfetcher.MockFetcher) so no network is required.internal/signature.t.Parallel()on each test, matching the convention the canonical lint config enforces.make checkgreen.Related
Filed separately: coverage for
/v1/e/and the auth flows, which are also entirely untested in Go.