(shebang: &str)
| 435 | #[test_case("#! python3.7" => Some(RequestedVersion::Exact(3, 7)) ; "bare 'python' with minor version")] |
| 436 | #[test_case("#!/usr/bin/python" => Some(RequestedVersion::Any) ; "no space between shebang and path")] |
| 437 | fn parse_python_shebang_tests(shebang: &str) -> Option<RequestedVersion> { |
| 438 | parse_python_shebang(&mut shebang.as_bytes()) |
| 439 | } |
| 440 | |
| 441 | #[test_case(&[0x23, 0x21, 0xc0, 0xaf] => None ; "invalid UTF-8")] |
| 442 | fn parse_python_sheban_include_invalid_bytes_tests( |
nothing calls this directly
no test coverage detected