(option)
| 181 | |
| 182 | def test_parse_defaultgetter(self) -> None: |
| 183 | def defaultget(option): |
| 184 | if not hasattr(option, "type"): |
| 185 | return |
| 186 | if option.type is int: |
| 187 | option.default = 42 |
| 188 | elif option.type is str: |
| 189 | option.default = "world" |
| 190 | |
| 191 | parser = parseopt.Parser(processopt=defaultget, _ispytest=True) |
| 192 | parser.addoption("--this", dest="this", type=int, action="store") |
nothing calls this directly
no outgoing calls
no test coverage detected