MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_html_to_text_basic

Function test_html_to_text_basic

core/src/tools/builtin/web_fetch.rs:166–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164
165 #[test]
166 fn test_html_to_text_basic() {
167 let html = "<p>Hello <b>world</b></p>";
168 let text = html_to_text(html);
169 assert!(text.contains("Hello"));
170 assert!(text.contains("world"));
171 assert!(!text.contains("<p>"));
172 assert!(!text.contains("<b>"));
173 }
174
175 #[test]
176 fn test_html_to_text_entities() {

Callers

nothing calls this directly

Calls 1

html_to_textFunction · 0.85

Tested by

no test coverage detected