MCPcopy Create free account
hub / github.com/apache/datafusion / test_missing_required_parameter

Function test_missing_required_parameter

datafusion/expr/src/arguments.rs:441–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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(&param_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() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…