MCPcopy Create free account
hub / github.com/csskit/csskit / test

Function test

crates/css_parse/src/cursor_write_sink.rs:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51 #[test]
52 fn test() {
53 let source_text = "foo{bar:baz();}";
54 let bump = Bump::default();
55 let mut str = String::new();
56 let mut stream = CursorWriteSink::new(source_text, &mut str);
57 let lexer = Lexer::new(&EmptyAtomSet::ATOMS, source_text);
58 let mut parser = Parser::new(&bump, source_text, lexer);
59 parser.parse_entirely::<ComponentValues>().output.unwrap().to_cursors(&mut stream);
60 assert_eq!(str, "foo{bar:baz();}");
61 }
62}

Callers

nothing calls this directly

Calls 1

to_cursorsMethod · 0.45

Tested by

no test coverage detected