MCPcopy Create free account
hub / github.com/PerroEngine/Perro / api_ref_signatures_name_their_heading

Function api_ref_signatures_name_their_heading

perro_website/src/docs.rs:282–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
290let value = 1;
291let _ = 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

Callers

nothing calls this directly

Calls 6

docsFunction · 0.85
h3_code_nameFunction · 0.85
table_detailFunction · 0.85
iterMethod · 0.45
containsMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected