Skip to content

test: node_patterns suite -- direction, inline props, multi-label, multi-type - #28

Merged
protosphinx merged 1 commit into
mainfrom
bot/pattern-shape-tests
Sep 2, 2026
Merged

protosphinx merged 1 commit into
mainfrom
bot/pattern-shape-tests

Conversation

@protosphinx

Copy link
Copy Markdown
Member

Summary

Adds tests/node_patterns.rs (13 tests, 239 LOC) covering pattern-shape features that were implemented in the parser but had no dedicated test file.

New coverage:

  • Incoming (<-) and undirected (--) relationship direction variants, plus a plan-display roundtrip check for all three directions
  • Multiple labels on a node pattern (u:Admin:User)
  • Inline node property maps -- single key, multiple keys, parameter value ({id: $uid})
  • Inline relationship property maps ([:KNOWS {since: 2020}])
  • Plan lowering: inline node props lower to Filter(Scan); inline rel props lower to Filter(Expand(...))
  • Multiple relationship types with pipe syntax (:KNOWS|FOLLOWS)
  • Anonymous anchor node (no var) and anonymous relationship (-[]->): verifies the var fields are None

Self-merge gate checklist

  • CI green
  • LOC delta < 250 (239 LOC added, 0 deleted)
  • No public API changes (test file only)
  • No runtime deps added
  • No workflow changes
  • At least one test file changed (this PR is entirely tests)

🤖 Generated with Claude Code

https://claude.ai/code/session_01RLjXteaU6ui7BRdZ2NvzNE


Generated by Claude Code

…multi-label, multi-type

Adds tests/node_patterns.rs with 13 tests for pattern-shape features that
were implemented in the parser but had no dedicated test file:

- Incoming and undirected relationship direction variants, with a plan
  display roundtrip check for all three directions
- Multiple labels on a node pattern (labels: Vec<String>)
- Inline node property maps (single, multi-key, parameter value)
- Inline relationship property maps
- Plan lowering: inline node props produce Filter over Scan; inline rel
  props produce Filter over Expand
- Multiple relationship types with pipe syntax (:A|B)
- Anonymous anchor node (no var) and anonymous relationship (no var)
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T16:14:15.794001Z fe94c8b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@protosphinx
protosphinx merged commit cd19e29 into main Sep 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant