()
| 503 | |
| 504 | #[test] |
| 505 | fn build_method_detail_simple() { |
| 506 | let method = MethodInfo { |
| 507 | name: crate::atom::atom("foo"), |
| 508 | name_offset: 0, |
| 509 | parameters: vec![], |
| 510 | return_type: Some(PhpType::parse("void")), |
| 511 | native_return_type: None, |
| 512 | description: None, |
| 513 | return_description: None, |
| 514 | links: Vec::new(), |
| 515 | see_refs: Vec::new(), |
| 516 | is_static: false, |
| 517 | visibility: Visibility::Public, |
| 518 | conditional_return: None, |
| 519 | deprecation_message: None, |
| 520 | deprecated_replacement: None, |
| 521 | template_params: vec![], |
| 522 | template_param_bounds: Default::default(), |
| 523 | template_bindings: vec![], |
| 524 | has_scope_attribute: false, |
| 525 | is_abstract: false, |
| 526 | is_virtual: false, |
| 527 | type_assertions: vec![], |
| 528 | throws: vec![], |
| 529 | if_this_is: None, |
| 530 | }; |
| 531 | let detail = build_method_detail(&method); |
| 532 | assert_eq!(detail, Some("(): void".to_string())); |
| 533 | } |
| 534 | |
| 535 | #[test] |
| 536 | fn build_method_detail_with_params() { |
nothing calls this directly
no test coverage detected