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

Function template_as_bound_simple

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

Source from the content-addressed store, hash-verified

1788
1789#[test]
1790fn template_as_bound_simple() {
1791 let doc = concat!("/**\n", " * @template T as SomeClass\n", " */");
1792 let result = extract_template_params_full(doc);
1793 assert_eq!(result.len(), 1);
1794 let (name, bound, _, default) = &result[0];
1795 assert_eq!(name, "T");
1796 assert_eq!(*bound, Some(PhpType::parse("SomeClass")));
1797 assert!(default.is_none());
1798}
1799
1800#[test]
1801fn template_as_bound_with_default() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected