(path, line)
| 132 | |
| 133 | |
| 134 | def enclosing(path, line): |
| 135 | best = None |
| 136 | for name, start, end, text in function_spans(path): |
| 137 | if start <= line <= end: |
| 138 | if best is None or start > best[1]: |
| 139 | best = (name, start, end, text) |
| 140 | return best |
| 141 | |
| 142 | |
| 143 | def segment_hash(text): |
no test coverage detected