Skip to content

Add handler download flow and server utility tests#31

Merged
andrew merged 1 commit into
mainfrom
add-coverage-tests-2
Mar 18, 2026
Merged

Add handler download flow and server utility tests#31
andrew merged 1 commit into
mainfrom
add-coverage-tests-2

Conversation

@andrew

@andrew andrew commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Adds tests for HTTP download paths across gem, hex, go, conda, cran, and maven handlers covering cache hits, invalid inputs, and upstream proxying. Also adds server tests for formatTimeAgo, formatSize, categorizeLicense, LoggerMiddleware, search/pagination, and the API packages list endpoint.

Handler coverage: 35.6% -> 50.6%
Server coverage: 49.3% -> 55.7%

Covers HTTP download paths for gem, hex, go, conda, cran, and maven
handlers with cache hit, invalid input, and upstream proxy scenarios.
Adds server tests for formatTimeAgo, formatSize, categorizeLicense,
LoggerMiddleware, search/pagination, and API packages list endpoint.
@andrew andrew merged commit 1308242 into main Mar 18, 2026
4 of 5 checks passed
@andrew andrew deleted the add-coverage-tests-2 branch March 26, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant