Skip to content

Add unit tests for ClientManagerResource zone methods and BlacklistWrapperInterceptor (#382)#404

Merged
huanglongchao merged 1 commit into
sofastack:masterfrom
hui-cha:huicha/feature/ut-cover-v2
Apr 14, 2026
Merged

Add unit tests for ClientManagerResource zone methods and BlacklistWrapperInterceptor (#382)#404
huanglongchao merged 1 commit into
sofastack:masterfrom
hui-cha:huicha/feature/ut-cover-v2

Conversation

@hui-cha
Copy link
Copy Markdown
Collaborator

@hui-cha hui-cha commented Apr 14, 2026

Summary

  • Add testClientOffInZoneNotThrottled and testClientOnInZoneNotThrottled to cover the not-throttled execution paths (L167/172/209/214) in ClientManagerResource zone methods
  • Add BlacklistWrapperInterceptorTest to cover the BLOCKED_REQUEST_KEY attribute check (L55) with tests for publisher blocked, subscriber blocked, and pass-through scenarios

Test plan

  • ClientManagerResourceThrottlingTest — 14 tests pass (2 new)
  • BlacklistWrapperInterceptorTest — 3 tests pass (new file)
  • Full session module test suite passes

🤖 Generated with Claude Code

…Interceptor

Cover the remaining uncovered lines:
- ClientManagerResource L167/172/209/214: not-throttled paths for clientOffInZone/clientOnInZone
- BlacklistWrapperInterceptor L55: BLOCKED_REQUEST_KEY attribute check

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@huanglongchao huanglongchao merged commit b3e89e9 into sofastack:master Apr 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants