MCPcopy Create free account
hub / github.com/brettcannon/python-launcher / parse_python_shebang_tests

Function parse_python_shebang_tests

src/cli.rs:437–439  ·  view source on GitHub ↗
(shebang: &str)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 1

parse_python_shebangFunction · 0.85

Tested by

no test coverage detected