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

Function _case_collision_graph

tests/test_export.py:879–888  ·  view source on GitHub ↗

Two nodes whose labels differ only by case - on macOS/APFS and Windows/NTFS their notes resolve to the same path unless the dedup map folds case.

()

Source from the content-addressed store, hash-verified

877# ── Case-only-distinct labels must not collide on case-insensitive filesystems ──
878
879def _case_collision_graph():
880 """Two nodes whose labels differ only by case - on macOS/APFS and Windows/NTFS
881 their notes resolve to the same path unless the dedup map folds case."""
882 return build_from_json({
883 "nodes": [
884 {"id": "n1", "label": "References", "file_type": "code", "source_file": "a.py"},
885 {"id": "n2", "label": "references", "file_type": "document", "source_file": "b.md"},
886 ],
887 "edges": [],
888 })
889
890
891def test_to_obsidian_case_only_distinct_labels_dont_overwrite():

Calls 1

build_from_jsonFunction · 0.90

Tested by

no test coverage detected