(path: Path)
| 9 | |
| 10 | |
| 11 | def _create_board_info(path: Path) -> dict[str, Any]: |
| 12 | build_info = json.loads(path.read_text()) |
| 13 | assert build_info.keys(), f"No boards found in {build_info}" |
| 14 | assert len(build_info.keys()) == 1, ( |
| 15 | f"Multiple boards found in {build_info}, so correct board should be specified" |
| 16 | ) |
| 17 | return build_info[next(iter(build_info))] |
| 18 | |
| 19 | |
| 20 | def _find_build_info(board: str, example: str | None = None) -> Path: |
no test coverage detected