(lang: str)
| 8 | } |
| 9 | |
| 10 | def executor_factory(lang: str) -> Executor: |
| 11 | |
| 12 | if lang not in EXECUTOR_MAPPING: |
| 13 | raise ValueError(f"Invalid language for executor: {lang}") |
| 14 | |
| 15 | executor_class = EXECUTOR_MAPPING[lang] |
| 16 | return executor_class() |
nothing calls this directly
no outgoing calls
no test coverage detected