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

Function template_default_true

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

Source from the content-addressed store, hash-verified

1695
1696#[test]
1697fn template_default_true() {
1698 let doc = concat!("/**\n", " * @template TSync of bool = true\n", " */",);
1699 let result = extract_template_params_full(doc);
1700 assert_eq!(result.len(), 1);
1701 let (name, bound, _, default) = &result[0];
1702 assert_eq!(name, "TSync");
1703 assert_eq!(*bound, Some(PhpType::parse("bool")));
1704 assert_eq!(*default, Some(PhpType::parse("true")));
1705}
1706
1707#[test]
1708fn template_default_null() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected