()
| 1695 | |
| 1696 | #[test] |
| 1697 | fn 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] |
| 1708 | fn template_default_null() { |
nothing calls this directly
no test coverage detected