()
| 22 | |
| 23 | |
| 24 | def _graph(): |
| 25 | G = nx.Graph() |
| 26 | G.add_node("src", label="validate_username()", source_file="pkg/auth/validators.py", source_location="L10") |
| 27 | G.add_node("tst", label="validate_username()", source_file="tests/auth/test_validators.py", source_location="L5") |
| 28 | G.add_node("doc", label="validate_username", source_file="docs/auth.md", source_location="L1") |
| 29 | G.add_node("cfg", label="username", source_file="pkg/settings.yml", source_location="L1") |
| 30 | G.add_node("ext", label="username") # external symbol: no source file |
| 31 | G.add_node( |
| 32 | "img", label="validate_username()", |
| 33 | source_file="fixtures/username_field.png", source_location="L1", file_type="image", |
| 34 | ) |
| 35 | G.add_edge("tst", "src", relation="calls", confidence="EXTRACTED") |
| 36 | return G |
| 37 | |
| 38 | |
| 39 | def _nodes_in_order(text: str) -> list[str]: |
no test coverage detected