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

Function extra_css_file

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

Source from the content-addressed store, hash-verified

177
178 #[test]
179 fn extra_css_file() {
180 css_inline()
181 .arg("tests/example.html")
182 .arg("--extra-css-file=tests/extra.css")
183 .arg("--output-filename-prefix=inlined.extra-css.")
184 .assert()
185 .success()
186 .stdout("tests/example.html: SUCCESS\n");
187
188 let content = fs::read_to_string("tests/inlined.extra-css.example.html").unwrap();
189 assert!(
190 content.contains(r#"style="color: #ffffff;background: red;""#),
191 "inlined output did not include extra-css rules:\n{content}"
192 );
193 }
194
195 #[test]
196 fn extra_css_file_not_found() {

Callers

nothing calls this directly

Calls 1

css_inlineFunction · 0.70

Tested by

no test coverage detected