MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / string_escapes

Function string_escapes

nodedb/src/control/promql/lexer.rs:332–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330
331 #[test]
332 fn string_escapes() {
333 let tokens = tokenize(r#""hello\nworld""#).unwrap();
334 assert_eq!(tokens[0], Token::String("hello\nworld".into()));
335 }
336
337 #[test]
338 fn duration_compound() {

Callers

nothing calls this directly

Calls 1

tokenizeFunction · 0.70

Tested by

no test coverage detected