()
| 439 | |
| 440 | #[test] |
| 441 | fn test_missing_required_parameter() { |
| 442 | let param_names = vec!["a".to_string(), "b".to_string(), "c".to_string()]; |
| 443 | |
| 444 | // Call with: func(a => 1, c => 3.0) - missing 'b' |
| 445 | let args = vec![lit(1), lit(3.0)]; |
| 446 | let arg_names = vec![ |
| 447 | Some(ArgumentName { |
| 448 | value: "a".to_string(), |
| 449 | is_quoted: false, |
| 450 | }), |
| 451 | Some(ArgumentName { |
| 452 | value: "c".to_string(), |
| 453 | is_quoted: false, |
| 454 | }), |
| 455 | ]; |
| 456 | |
| 457 | let result = resolve_function_arguments(¶m_names, args, arg_names); |
| 458 | assert!(result.is_err()); |
| 459 | assert!( |
| 460 | result |
| 461 | .unwrap_err() |
| 462 | .to_string() |
| 463 | .contains("Missing required parameter") |
| 464 | ); |
| 465 | } |
| 466 | |
| 467 | #[test] |
| 468 | fn test_mixed_case_signature_unquoted_matching() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…