MCPcopy Create free account
hub / github.com/tirth8205/code-review-graph / _make_node

Method _make_node

tests/test_embeddings.py:73–82  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

71
72class TestNodeToText:
73 def _make_node(self, **kwargs):
74 defaults = dict(
75 id=1, kind="Function", name="my_func",
76 qualified_name="file.py::my_func", file_path="file.py",
77 line_start=1, line_end=10, language="python",
78 parent_name=None, params=None, return_type=None,
79 is_test=False, file_hash=None, extra={},
80 )
81 defaults.update(kwargs)
82 return GraphNode(**defaults)
83
84 def test_basic_function(self):
85 node = self._make_node()

Callers 4

test_basic_functionMethod · 0.95

Calls 2

GraphNodeClass · 0.90
updateMethod · 0.45

Tested by

no test coverage detected