()
| 1717 | |
| 1718 | #[test] |
| 1719 | fn 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] |
| 1730 | fn template_no_bound_no_default() { |
nothing calls this directly
no test coverage detected