Skip to content

test: cover Echo adapter guard paths#6

Merged
cmilesio merged 1 commit into
mainfrom
test/complete-timeout-coverage
Jul 18, 2026
Merged

test: cover Echo adapter guard paths#6
cmilesio merged 1 commit into
mainfrom
test/complete-timeout-coverage

Conversation

@cmilesio

Copy link
Copy Markdown
Member

What

Add focused assertions for defensive nil paths in detached context commits, response accessors, context unwrapping, and inherited router middleware lookup.

Why

The Echo dispatch and timeout work added these safe fallback paths, but Codecov reported four lines as only partially covered. These tests lock in the intended no-op and default behavior without changing runtime code.

Validation

  • go test ./...
  • go vet ./...
  • go test -race ./...
  • strict checkptr test pass
  • focused tests pass across 50 repetitions
  • adapter package coverage: 97.1%
  • make benchmark-svg-verify

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cmilesio
cmilesio merged commit 3c47247 into main Jul 18, 2026
3 checks passed
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.

2 participants