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

Function test_string

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

Source from the content-addressed store, hash-verified

2175
2176 #[test]
2177 fn test_string() {
2178 let source = r#""double" 'single' 'can\'t' "\\\"" '\t\r\n' '\g' r'raw\'' '\420' '\200\0a'"#;
2179 assert_snapshot!(lex_source(source));
2180 }
2181
2182 fn string_continuation_with_eol(eol: &str) -> LexerOutput {
2183 let source = format!("\"abc\\{eol}def\"");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected