(choice: str)
| 157 | |
| 158 | |
| 159 | def check_junit_format(choice: str) -> str: |
| 160 | choices = ["global", "per_file"] |
| 161 | if choice not in choices: |
| 162 | raise argparse.ArgumentTypeError( |
| 163 | "invalid choice '{}' (choose from {})".format( |
| 164 | choice, ", ".join(f"'{x}'" for x in choices) |
| 165 | ) |
| 166 | ) |
| 167 | return choice |
| 168 | |
| 169 | |
| 170 | def split_commas(value: str) -> list[str]: |
no test coverage detected
searching dependent graphs…