Skip to content

test: add unit tests for ClearHandler and Purge in context_test.go - #47

Open
aoright wants to merge 1 commit into
gorilla:mainfrom
aoright:test/add-clearhandler-and-purge-unit-tests
Open

test: add unit tests for ClearHandler and Purge in context_test.go#47
aoright wants to merge 1 commit into
gorilla:mainfrom
aoright:test/add-clearhandler-and-purge-unit-tests

Conversation

@aoright

@aoright aoright commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • Add TestClearHandler verifying that ClearHandler automatically clears request context data at the end of the HTTP handler execution.
  • Add TestPurge verifying that Purge(maxAge) correctly removes stale request data and Purge(0) cleans all stored request data.

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant