MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / stdin

Function stdin

css-inline/tests/test_cli.rs:253–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251
252 #[test]
253 fn stdin() {
254 css_inline()
255 .write_stdin(r#"<html><head><style>h1 {background-color: blue;}</style></head><body><h1>Hello world!</h1></body></html>"#)
256 .assert()
257 .success()
258 .stdout("<html><head></head><body><h1 style=\"background-color: blue;\">Hello world!</h1></body></html>");
259 }
260
261 #[test_case("--help", "css-inline inlines CSS into HTML")]
262 #[test_case("-h", "css-inline inlines CSS into HTML")]

Callers 1

mainFunction · 0.85

Calls 1

css_inlineFunction · 0.70

Tested by

no test coverage detected