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

Function template_default_simple_bool

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

Source from the content-addressed store, hash-verified

1684
1685#[test]
1686fn template_default_simple_bool() {
1687 let doc = concat!("/**\n", " * @template TAsync of bool = false\n", " */",);
1688 let result = extract_template_params_full(doc);
1689 assert_eq!(result.len(), 1);
1690 let (name, bound, _, default) = &result[0];
1691 assert_eq!(name, "TAsync");
1692 assert_eq!(*bound, Some(PhpType::parse("bool")));
1693 assert_eq!(*default, Some(PhpType::parse("false")));
1694}
1695
1696#[test]
1697fn template_default_true() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected