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

Function template_default_null

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

Source from the content-addressed store, hash-verified

1706
1707#[test]
1708fn template_default_null() {
1709 let doc = concat!("/**\n", " * @template TValue of mixed = null\n", " */",);
1710 let result = extract_template_params_full(doc);
1711 assert_eq!(result.len(), 1);
1712 let (name, bound, _, default) = &result[0];
1713 assert_eq!(name, "TValue");
1714 assert_eq!(*bound, Some(PhpType::parse("mixed")));
1715 assert_eq!(*default, Some(PhpType::parse("null")));
1716}
1717
1718#[test]
1719fn template_no_default() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected