(roles_file: Path)
| 172 | |
| 173 | |
| 174 | def load_roles(roles_file: Path) -> Dict[str, Dict[str, Any]]: |
| 175 | payload = load_json(roles_file) |
| 176 | roles = payload.get("roles") if isinstance(payload, dict) else {} |
| 177 | return roles if isinstance(roles, dict) else {} |
| 178 | |
| 179 | |
| 180 | def load_user_metadata(input_dir: Path) -> Dict[str, Dict[str, Any]]: |
no test coverage detected