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

Function success

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

Source from the content-addressed store, hash-verified

12
13 #[test]
14 fn success() {
15 css_inline()
16 .arg("tests/example.html")
17 .arg("--output-filename-prefix=inlined.success.")
18 .assert()
19 .success()
20 .stdout("tests/example.html: SUCCESS\n");
21 let content = fs::read_to_string("tests/inlined.success.example.html").unwrap();
22 assert_eq!(
23 content,
24 "<html><head>\n \
25 \n \
26 \n \
27 \n\
28 </head>\n\
29 <body>\n\
30 <a class=\"test-class\" href=\"https://example.com\" style=\"color: #ffffff;\">Test</a>\n\
31 <h1 style=\"text-decoration: none;\">Test</h1>\n\n\n\
32 </body></html>"
33 )
34 }
35
36 #[test]
37 fn keep_style_tags() {

Callers

nothing calls this directly

Calls 1

css_inlineFunction · 0.70

Tested by

no test coverage detected