Prerequisites
Test Scope
Module: zone-aware topic route filtering
File: rocketmq-namesrv/src/route/zone_route_rpc_hook.rs
Coverage: the existing tests cover successful filtering and JSON encoding; add low-risk branch coverage for requests and responses that should not be modified.
Test Cases
Willing to contribute?
Prerequisites
Test Scope
Module: zone-aware topic route filtering
File:
rocketmq-namesrv/src/route/zone_route_rpc_hook.rsCoverage: the existing tests cover successful filtering and JSON encoding; add low-risk branch coverage for requests and responses that should not be modified.
Test Cases
GetRouteinfoByTopicrequest leaves the response body unchanged.zoneModeleaves the response body unchanged.zoneNameleaves the response body unchanged.filter_by_zone_name.cargo test -p rocketmq-namesrv zone_route_rpc_hook.Willing to contribute?