MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _protocol_reference_input

Function _protocol_reference_input

tests/test_dedup.py:2213–2224  ·  view source on GitHub ↗

docs/firmware/protocol.md mints its own `docs_firmware_protocol` plus a bare `protocol` that stands for another file; docs/protocol.md mints `protocol`.

(*, edge=True, docs_label="Protocol",
                              mention_label="protocol (top-level)", top_level=False)

Source from the content-addressed store, hash-verified

2211
2212
2213def _protocol_reference_input(*, edge=True, docs_label="Protocol",
2214 mention_label="protocol (top-level)", top_level=False):
2215 """docs/firmware/protocol.md mints its own `docs_firmware_protocol` plus a bare
2216 `protocol` that stands for another file; docs/protocol.md mints `protocol`."""
2217 fw = "docs/firmware/protocol.md"
2218 nodes = [_mention_node("protocol", docs_label, "docs/protocol.md"),
2219 _mention_node("docs_firmware_protocol", "Firmware protocol", fw),
2220 _mention_node("protocol", mention_label, fw)]
2221 if top_level:
2222 nodes.append(_mention_node("protocol", "Protocol (top-level)", "protocol.md"))
2223 edges = [_mention_edge("docs_firmware_protocol", "protocol", fw)] if edge else []
2224 return {"nodes": nodes, "edges": edges}
2225
2226
2227def _assert_reference_lands_on_the_other_file(G):

Calls 2

_mention_nodeFunction · 0.85
_mention_edgeFunction · 0.85

Tested by

no test coverage detected