MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / test_id_scan

Method test_id_scan

tests/flow/test_params.py:138–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 pass
137
138 def test_id_scan(self):
139 redis_graph.query("CREATE ({val:1})")
140 expected_results = [[1]]
141 params = {'id': 0}
142 query = "MATCH (n) WHERE id(n)=$id return n.val"
143 query_info = QueryInfo(query=query, description="Test id scan with params", expected_result=expected_results)
144 self._assert_resultset_equals_expected(redis_graph.query(query, params), query_info)
145 plan = redis_graph.execution_plan(query, params=params)
146 self.env.assertIn('NodeByIdSeek', plan)
147

Callers

nothing calls this directly

Calls 4

QueryInfoClass · 0.90
execution_planMethod · 0.80
queryMethod · 0.45

Tested by

no test coverage detected