(root)
| 138 | |
| 139 | |
| 140 | def get_func_ranges_c(root): |
| 141 | func_names, func_ranges = [], [] |
| 142 | for func_node in root.findall('./srcml:function', namespaces=ns): |
| 143 | |
| 144 | func_name, start_line, end_line = handle_function(func_node) |
| 145 | if not (func_name and start_line and end_line): |
| 146 | continue |
| 147 | |
| 148 | func_ranges.append([start_line, end_line]) |
| 149 | func_names.append(func_name) |
| 150 | return func_names, func_ranges |
no test coverage detected