| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
- Replace `Graph` with `BaseGraph` in `isOrthogonal` & `createEdgeHandler` tests - This reveals that these methods don't use registered styles but contain hardcoded EdgeStyle implementations - Prepares for future refactoring to use configuration instead of hardcoded edge style logic - Also test all EdgeStyles with `isOrthogonal` for consistency
WalkthroughThe test suite for graph-related functionality was updated to replace the use of the createGraphWithoutPlugins() utility function with direct instantiation of the BaseGraph class. This update applies to all relevant tests, including those for the isOrthogonal, createEdgeHandler, and createHandler methods. Additionally, the set of edge styles tested in the isOrthogonal tests was expanded to include EntityRelation, SegmentConnector, and TopToBottom. A new custom edge style function was introduced for testing. Imports were adjusted accordingly, but the core test logic and assertions remain unchanged. Changes
Sequence Diagram(s)sequenceDiagram
participant Test
participant BaseGraph
participant EdgeHandler
Test->>BaseGraph: new BaseGraph()
Test->>BaseGraph: isOrthogonal(CellState with various edge styles)
BaseGraph-->>Test: Return boolean result
Test->>BaseGraph: createEdgeHandler(edgeStyle)
BaseGraph-->>Test: Return appropriate EdgeHandler instance
Possibly related PRs
📜 Recent review details Configuration used: CodeRabbit UI Reviewing files that changed from the base of the PR and between 7c3ba0c and 7dce46c. 📒 Files selected for processing (1)
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. ❤️ Share 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (.coderabbit.yaml)
Documentation and Community
|
Sorry, something went wrong.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
hardcoded EdgeStyle implementations
edge style logic
Notes
Covers #767
Summary by CodeRabbit