Wrote merge nodes test and neo4j testing infrastructure.

Added entity formatting functionality.
Renamed the EventSubgraph to Subgraph because it is generic.
This commit is contained in:
jay
2026-11-26 11:59:31 -05:00
parent 54f3f81add
commit ffe11f9c36
8 changed files with 600 additions and 39 deletions
+6 -2
View File
@@ -5,6 +5,10 @@ import (
"testing"
)
// ----------------------------------------------------------------------------
// Match Keys
// ----------------------------------------------------------------------------
func TestSimpleMatchKeys(t *testing.T) {
matchKeys := &SimpleMatchKeys{
Keys: map[string][]string{
@@ -58,13 +62,13 @@ func TestMatchProps(t *testing.T) {
},
{
name: "matching label, required prop missing",
node: NewNode("Event", Properties{}),
node: NewNode([]string{"Event"}, Properties{}),
wantErr: true,
wantErrText: "missing property",
},
{
name: "no recognized label",
node: NewNode("Tag", Properties{"name": "e", "value": "abc"}),
node: NewNode([]string{"Tag"}, Properties{"name": "e", "value": "abc"}),
wantErr: true,
wantErrText: "no recognized label",
},