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

Function test_log_simplify_errors

datafusion/functions/src/math/log.rs:750–758  ·  view source on GitHub ↗

Test log() simplification errors

()

Source from the content-addressed store, hash-verified

748 #[test]
749 // Test log() simplification errors
750 fn test_log_simplify_errors() {
751 let context = SimplifyContext::default();
752 // Expect 0 args to error
753 let _ = LogFunc::new().simplify(vec![], &context).unwrap_err();
754 // Expect 3 args to error
755 let _ = LogFunc::new()
756 .simplify(vec![lit(1), lit(2), lit(3)], &context)
757 .unwrap_err();
758 }
759
760 #[test]
761 // Test that non-simplifiable log() expressions are unchanged after simplification

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
unwrap_errMethod · 0.80
simplifyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…