MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _bundle

Function _bundle

tests/unit/core/test_bundle_edge_zero_id.py:25–29  ·  view source on GitHub ↗

A CGCBundle whose only real behaviour is its backend type.

(backend: str)

Source from the content-addressed store, hash-verified

23
24
25def _bundle(backend: str) -> CGCBundle:
26 """A CGCBundle whose only real behaviour is its backend type."""
27 db_manager = MagicMock()
28 db_manager.get_backend_type.return_value = backend
29 return CGCBundle(db_manager)
30
31
32def _edge(from_id: str, to_id: str) -> dict:

Calls 1

CGCBundleClass · 0.90

Tested by

no test coverage detected