(self, target_files, rev)
| 41 | return dict(groups) |
| 42 | |
| 43 | def get_definition_data(self, target_files, rev): |
| 44 | result = {} |
| 45 | for definition_file in target_files: |
| 46 | if os.name == "nt": |
| 47 | source_file = _normpath(definition_file).replace("\\", "/") |
| 48 | else: |
| 49 | source_file = definition_file |
| 50 | file_content = ( |
| 51 | self.data.get(rev, {}) |
| 52 | .get("sources", {}) |
| 53 | .get("data", {}) |
| 54 | .get(source_file, {}) |
| 55 | .get("data", {}) |
| 56 | ) |
| 57 | if file_content: |
| 58 | result[definition_file] = file_content |
| 59 | return result |
| 60 | |
| 61 | |
| 62 | class RendererWithErrors(NamedTuple): |
no test coverage detected