The one node with this label (a leading `.` of C# methods ignored) in that file.
(result, label, filename)
| 583 | |
| 584 | |
| 585 | def _node_id(result, label, filename): |
| 586 | """The one node with this label (a leading `.` of C# methods ignored) in that file.""" |
| 587 | hits = [n["id"] for n in result["nodes"] |
| 588 | if n["label"].lstrip(".") == label and str(n.get("source_file", "")).endswith(filename)] |
| 589 | assert len(hits) == 1, f"{label!r} in {filename}: {hits}" |
| 590 | return hits[0] |
| 591 | |
| 592 | |
| 593 | def _calls(result, caller, caller_file): |
no test coverage detected