(cls, data)
| 82 | |
| 83 | @classmethod |
| 84 | def parse_data(cls, data): |
| 85 | block_dict = cls.parse_blocks(data) |
| 86 | parsed_data = {} |
| 87 | for block, content in block_dict.items(): |
| 88 | # Try to strip code fences |
| 89 | try: |
| 90 | content = cls.parse_code(text=content) |
| 91 | except Exception: |
| 92 | pass |
| 93 | |
| 94 | # Try to parse list |
| 95 | try: |
| 96 | content = cls.parse_file_list(text=content) |
| 97 | except Exception: |
| 98 | pass |
| 99 | parsed_data[block] = content |
| 100 | return parsed_data |
| 101 | |
| 102 | @classmethod |
| 103 | def parse_data_with_mapping(cls, data, mapping): |
nothing calls this directly
no test coverage detected