MCPcopy Create free account
hub / github.com/astral-sh/ruff / test_ipython_escape_command

Function test_ipython_escape_command

crates/ruff_python_parser/src/lexer.rs:1887–1905  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1885
1886 #[test]
1887 fn test_ipython_escape_command() {
1888 let source = r"
1889?foo
1890??foo
1891%timeit a = b
1892%timeit a % 3
1893%matplotlib \
1894 --inline
1895!pwd \
1896 && ls -a | sed 's/^/\\ /'
1897!!cd /Users/foo/Library/Application\ Support/
1898/foo 1 2
1899,foo 1 2
1900;foo 1 2
1901!ls
1902"
1903 .trim();
1904 assert_snapshot!(lex_jupyter_source(source));
1905 }
1906
1907 #[test]
1908 fn test_ipython_help_end_escape_command() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected