()
| 1684 | |
| 1685 | #[test] |
| 1686 | fn 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] |
| 1697 | fn template_default_true() { |
nothing calls this directly
no test coverage detected