Repository navigation
test: consolidate the Issue*Test classes of the openCypher path procedures - #11678
Conversation
…dures Fold the 7 Issue*Test classes of query/opencypher/procedures/path into feature-named classes, each source class becoming a @nested class with its own fixture unchanged: - PathFiltersTest: FilterSyntax (#10025), NodeLists (#10049), Parsing (was PathFilterParsingTest) - PathExpandConfigTest: Levels (its own tests), Uniqueness (#10049), ExpansionLimits (#10049), StreamClosedByCall (#10150) - PathGhostEntriesTest: GhostEdge (#10148), GhostEndpoint (was PathSubgraphGhostEndpointTest) - Issue10048SubgraphAllRelationshipsTest renamed to PathSubgraphAllRelationshipsTest No test removed: 106 before, 106 after, all green.
|
This pull request is merged. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | ✅ -4.38% coverage variation |
| Diff coverage | ✅ ∅ diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (62c44cb) 283382 249567 88.07% Head commit (2a094d2) 316990 (+33608) 265280 (+15713) 83.69% (-4.38%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#11678) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
Review: test-only consolidation of the
I did not run the tests. Please confirm the consolidated classes pass in CI. In particular, check that tests which used the same database path ( LGTM from my side. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11678 +/- ##
==========================================
- Coverage 80.01% 80.01% -0.01%
==========================================
Files 2463 2463
Lines 283382 283382
Branches 62325 62325
==========================================
- Hits 226761 226744 -17
- Misses 33857 33871 +14
- Partials 22764 22767 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
What does this PR do?
Folds the 7
Issue*Testclasses ofengine/src/test/java/com/arcadedb/query/opencypher/procedures/path/into feature-named classes. Each source class becomes a@Nestedclass with its fixture unchanged (own database path,TestHelperbase where it had one); the issue Javadoc moves onto the nested class so the issue numbers stay searchable.PathFiltersTest(new)FilterSyntax(#10025),NodeLists(#10049),Parsing(wasPathFilterParsingTest)PathExpandConfigTest(existing, now an outer class)Levels(its own 3 tests),Uniqueness(#10049),ExpansionLimits(#10049),StreamClosedByCall(#10150)PathGhostEntriesTest(new)GhostEdge(#10148),GhostEndpoint(wasPathSubgraphGhostEndpointTest)PathSubgraphAllRelationshipsTestIssue10048SubgraphAllRelationshipsTestPathSubgraphComponentTest@BeforeAllfixture)11 files -> 5, no
Issue*Testleft in the package.Motivation
Same cleanup as #11675 and #11677: one class per feature instead of one per issue. The outer classes carry no lifecycle of their own, so no nested test pays for an extra database.
Related issues
Follow-up of #11677 (it left the
procedures/pathsub-package out).Additional Notes
limittests on different graphs) exercise different layers.Checklist
mvn -o -pl engine -am test -Dtest='com.arcadedb.query.opencypher.procedures.path.**': 106 run, 0 failures (106 before the change, per class sums match)🤖 Generated with Claude Code
Summary by CodeRabbit