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

Function extra_css

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

Source from the content-addressed store, hash-verified

207
208 #[test]
209 fn extra_css() {
210 css_inline()
211 .arg("tests/example.html")
212 .arg("--extra-css=.test-class { background: green; }")
213 .arg("--output-filename-prefix=inlined.extra-css-cli.")
214 .assert()
215 .success()
216 .stdout("tests/example.html: SUCCESS\n");
217
218 let content = fs::read_to_string("tests/inlined.extra-css-cli.example.html").unwrap();
219 assert!(
220 content.contains(r#"style="color: #ffffff;background: green;""#),
221 "expected inline background from --extra-css but got:\n{content}",
222 );
223 }
224
225 #[test]
226 fn not_found() {

Callers

nothing calls this directly

Calls 1

css_inlineFunction · 0.70

Tested by

no test coverage detected