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

Function test_invalid_arg_count

datafusion/spark/src/function/url/parse_url.rs:618–629  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

616
617 #[test]
618 fn test_invalid_arg_count() {
619 let urls = sa(&[Some("https://example.com")]);
620 let err = spark_handled_parse_url(from_ref(&urls), |x| x).unwrap_err();
621 assert!(format!("{err}").contains("expects 2 or 3 arguments"));
622
623 let parts = sa(&[Some("HOST")]);
624 let keys = sa(&[Some("x")]);
625 let err =
626 spark_handled_parse_url(&[urls, parts, keys, sa(&[Some("extra")])], |x| x)
627 .unwrap_err();
628 assert!(format!("{err}").contains("expects 2 or 3 arguments"));
629 }
630
631 #[test]
632 fn test_non_string_types_error() {

Callers

nothing calls this directly

Calls 3

saFunction · 0.85
spark_handled_parse_urlFunction · 0.85
unwrap_errMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…