MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / template_no_default

Function template_no_default

tests/unit/docblock_parsing.rs:1719–1727  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1717
1718#[test]
1719fn template_no_default() {
1720 let doc = concat!("/**\n", " * @template T of string\n", " */",);
1721 let result = extract_template_params_full(doc);
1722 assert_eq!(result.len(), 1);
1723 let (name, bound, _, default) = &result[0];
1724 assert_eq!(name, "T");
1725 assert_eq!(*bound, Some(PhpType::parse("string")));
1726 assert!(default.is_none());
1727}
1728
1729#[test]
1730fn template_no_bound_no_default() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected