Skip to content

test(interceptor): add comprehensive tests for interceptor chain builder#10

Open
schaenzer wants to merge 3 commits into
mainfrom
claude/create-new-branch-dbKQo
Open

test(interceptor): add comprehensive tests for interceptor chain builder#10
schaenzer wants to merge 3 commits into
mainfrom
claude/create-new-branch-dbKQo

Conversation

@schaenzer
Copy link
Copy Markdown
Member

Expand test coverage from 4 basic tests to 19 tests across 5 categories:

  • Options white-box tests (config application, independence, last-wins)
  • Builder black-box tests (table-driven with various option combos)
  • Ordering tests via reflect (verify exact interceptor sequence)
  • Behavioral integration tests (panic recovery, request ID propagation,
    deadline enforcement, error mapping, success path)
  • Options integration tests (custom deadline/requestID configs, order independence)

https://claude.ai/code/session_011YbD59ctwdD2jMEbvBBTBN

Expand test coverage from 4 basic tests to 19 tests across 5 categories:
- Options white-box tests (config application, independence, last-wins)
- Builder black-box tests (table-driven with various option combos)
- Ordering tests via reflect (verify exact interceptor sequence)
- Behavioral integration tests (panic recovery, request ID propagation,
  deadline enforcement, error mapping, success path)
- Options integration tests (custom deadline/requestID configs, order independence)

https://claude.ai/code/session_011YbD59ctwdD2jMEbvBBTBN
Add dorny/test-reporter@v2 to display individual test results as a
GitHub check run. Tests now output JSON format (-json flag) which the
reporter parses. Both the test report and coverage artifact upload use
if: always() to run even when tests fail.

https://claude.ai/code/session_011YbD59ctwdD2jMEbvBBTBN
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 6, 2026

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/deepworx/go-utils/pkg/connectrpc/interceptor 97.06% (ø)

Coverage by file

Changed unit test files

  • github.com/deepworx/go-utils/pkg/connectrpc/interceptor/interceptor_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants