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

Function collect_source_api_names

perro_website/src/docs.rs:387–400  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

385 (current.as_deref(), table_detail(line, "| Signature |"))
386 {
387 let macro_name = format!("{name}!");
388 if !sig.contains(name) && !sig.contains(&macro_name) {
389 failures.push(format!(
390 "{} `{name}` signature does not name API: {sig}",
391 doc.slug
392 ));
393 }
394 }
395 }
396 }
397
398 assert!(failures.is_empty(), "{}", failures.join("\n"));
399 }
400
401 #[test]
402 fn docs_do_not_use_generic_api_placeholder_prose() {
403 let banned = [

Calls 2

joinMethod · 0.80