()
| 280 | fs, |
| 281 | path::{Path, PathBuf}, |
| 282 | }; |
| 283 | |
| 284 | #[test] |
| 285 | fn renders_raw_markdown_without_hiding_examples() { |
| 286 | let html = markdown_html( |
| 287 | r#"Example: |
| 288 | |
| 289 | ```rust |
| 290 | let value = 1; |
| 291 | let _ = value; |
| 292 | ``` |
| 293 | "#, |
| 294 | ); |
| 295 | |
| 296 | assert!(strip_tags(&html).contains("let value = 1;")); |
| 297 | assert!(html.contains("code-script language-rust")); |
| 298 | assert!(html.contains("tok-kw")); |
| 299 | } |
| 300 | |
| 301 | #[test] |
| 302 | fn docs_do_not_contain_stale_script_model_terms() { |
| 303 | let banned = [ |
| 304 | "PerroScript", |
| 305 | "ScriptCtx", |
| 306 | "#[derive(Default, PerroScript)]", |
| 307 | "derive Perro script", |
| 308 | "script struct", |
| 309 | "with_state!(ctx,", |
| 310 | "with_state_mut!(ctx,", |
| 311 | "with_state!(ctx.run, 0.0", |
| 312 | "with_state_mut!(ctx.run, 0.0", |
| 313 | ]; |
| 314 |
nothing calls this directly
no test coverage detected