-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Add paths getter, toString, and toDot to PathTrie for debugging #320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add ignore paths for examples, benchmark, and doc directories - Split coverage upload into separate steps with flags for each package - Associate each lcov.info file with its corresponding package flag
Adds the ability to enumerate and visualize all registered paths in a PathTrie for debugging routing issues. - Add `paths` getter that returns an Iterable<String> of all registered paths - Add `toString()` override for quick debugging output - Add `toDot()` method for DOT graph visualization (Graphviz compatible) - Use cycle detection to handle recursive attachment scenarios - Paths are returned in deterministic order (literals sorted, then dynamic) Closes serverpod#319
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #320 +/- ##
===========================================
+ Coverage 27.95% 91.31% +63.36%
===========================================
Files 87 97 +10
Lines 3291 3777 +486
Branches 1735 1929 +194
===========================================
+ Hits 920 3449 +2529
+ Misses 2371 328 -2043
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Adds debugging functionality to
PathTriefor diagnosing routing issues:pathsgetter - Returns all registered path patterns asIterable<String>toString()override - Quick text dump of all pathstoDot()method - DOT graph output for Graphviz visualization, with cycles from self-attachment shown as dashed red edgesAll methods handle cycles created by self-attachment.
Related Issues
Pre-Launch Checklist
///), ensuring consistency with existing project documentation.Breaking Changes