Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
fix: update test specs to assert CONTAINS instead of DEFINES
riley02271f2a2c27a0e5
diff --git a/memory-layer/src/test/scala/ix/memory/EndToEndSpec.scala b/memory-layer/src/test/scala/ix/memory/EndToEndSpec.scalaindex 25a1e539..9de53138 100644--- a/memory-layer/src/test/scala/ix/memory/EndToEndSpec.scala+++ b/memory-layer/src/test/scala/ix/memory/EndToEndSpec.scala@@ -93,7 +93,7 @@ class EndToEndSpec extends AsyncFlatSpec with AsyncIOSpec with Matchers with Tes// Verify nodes are present from the ingestionresult.nodes.size should be >= 1- // Verify edges are present (DEFINES, IMPORTS, CALLS relationships)+ // Verify edges are present (CONTAINS, IMPORTS, CALLS relationships)result.edges should not be empty}}diff --git a/memory-layer/src/test/scala/ix/memory/ingestion/TreeSitterPythonParserSpec.scala b/memory-layer/src/test/scala/ix/memory/ingestion/TreeSitterPythonParserSpec.scalaindex bac58558..625110f3 100644--- a/memory-layer/src/test/scala/ix/memory/ingestion/TreeSitterPythonParserSpec.scala+++ b/memory-layer/src/test/scala/ix/memory/ingestion/TreeSitterPythonParserSpec.scala@@ -25,10 +25,10 @@ class TreeSitterPythonParserSpec extends AnyFlatSpec with Matchers {imports.size should be >= 2}- it should "extract class-to-method DEFINES edges" in {+ it should "extract class-to-method CONTAINS edges" in {val source = scala.io.Source.fromResource("fixtures/billing_service.py").mkStringval result = parser.parse("billing_service.py", source)- val defines = result.relationships.filter(_.predicate == "DEFINES")+ val defines = result.relationships.filter(_.predicate == "CONTAINS")defines.size should be >= 3}diff --git a/memory-layer/src/test/scala/ix/memory/ingestion/parsers/ConfigParserSpec.scala b/memory-layer/src/test/scala/ix/memory/ingestion/parsers/ConfigParserSpec.scalaindex 5df07086..25c9aad5 100644--- a/memory-layer/src/test/scala/ix/memory/ingestion/parsers/ConfigParserSpec.scala+++ b/memory-layer/src/test/scala/ix/memory/ingestion/parsers/ConfigParserSpec.scala@@ -68,10 +68,10 @@ class ConfigParserSpec extends AnyFlatSpec with Matchers {configs.head.name shouldBe "settings.json"}- it should "create DEFINES relationships from Config to ConfigEntry" in {+ it should "create CONTAINS relationships from Config to ConfigEntry" in {val json = """{"a": "1", "b": "2"}"""val result = parser.parse("app.json", json)- val defines = result.relationships.filter(_.predicate == "DEFINES")+ val defines = result.relationships.filter(_.predicate == "CONTAINS")defines should have size 2defines.foreach(_.srcName shouldBe "app.json")}diff --git a/memory-layer/src/test/scala/ix/memory/ingestion/parsers/ScalaParserSpec.scala b/memory-layer/src/test/scala/ix/memory/ingestion/parsers/ScalaParserSpec.scalaindex eac7c275..0fd4beaf 100644--- a/memory-layer/src/test/scala/ix/memory/ingestion/parsers/ScalaParserSpec.scala+++ b/memory-layer/src/test/scala/ix/memory/ingestion/parsers/ScalaParserSpec.scala@@ -90,9 +90,9 @@ class ScalaParserSpec extends AnyFlatSpec with Matchers {imports.map(_.name) should contain allOf ("cats.effect.IO", "ix.memory.model")}- it should "create DEFINES relationships from file to types" in {+ it should "create CONTAINS relationships from file to types" in {val result = parser.parse("ConfidenceScorer.scala", sampleCode)- val defines = result.relationships.filter(_.predicate == "DEFINES")+ val defines = result.relationships.filter(_.predicate == "CONTAINS")defines.map(r => (r.srcName, r.dstName)) should contain allOf (("ConfidenceScorer.scala", "ConfidenceScorer"),("ConfidenceScorer.scala", "ConfidenceScorerImpl")diff --git a/memory-layer/src/test/scala/ix/memory/ingestion/parsers/TypeScriptParserSpec.scala b/memory-layer/src/test/scala/ix/memory/ingestion/parsers/TypeScriptParserSpec.scalaindex bb9a652a..c3442c78 100644--- a/memory-layer/src/test/scala/ix/memory/ingestion/parsers/TypeScriptParserSpec.scala+++ b/memory-layer/src/test/scala/ix/memory/ingestion/parsers/TypeScriptParserSpec.scala@@ -104,7 +104,7 @@ class TypeScriptParserSpec extends AnyFlatSpec with Matchers {""".stripMarginval result = parser.parse("service.ts", source)result.entities.exists(e => e.name == "UserService" && e.kind == NodeKind.Class) shouldBe true- result.relationships.exists(r => r.srcName == "service.ts" && r.dstName == "UserService" && r.predicate == "DEFINES") shouldBe true+ result.relationships.exists(r => r.srcName == "service.ts" && r.dstName == "UserService" && r.predicate == "CONTAINS") shouldBe true}it should "extract function definitions" in {