Conversation
…#2709) Signed-off-by: shaoyihan@zerozen.cn <shaoyihan@zerozen.cn>
|
All contributors have signed the CLA ✍️ ✅ |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthrough
ChangesEdge composition error handling
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change clearly rejects unsupported edge kinds and includes focused regression coverage, so it is mergeable. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
|
I have read the CLA Document and I hereby sign the CLA |
Fixes #2709
Summary
GetEdgeCompositionPathsilently returned an empty path when given an unknown edge kind, making it impossible to distinguish "no path exists" from "this kind is unsupported".Changes
ad.go: add adefaultcase that returns an explicit error for unknown edge kindsTest plan
go test ./packages/go/analysis/ad/ -run TestGetEdgeCompositionPathpassesSummary by CodeRabbit
Bug Fixes
Tests