MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / where_expr_merges_temp_args

Function where_expr_merges_temp_args

src/python/py_kernel.rs:628–639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

626
627 #[test]
628 fn where_expr_merges_temp_args() {
629 pyo3::prepare_freethreaded_python();
630 Python::with_gil(|py| {
631 let km = PyKernelModule::new();
632 let cond = km.arg("cond");
633 let t_val = 1.0f64.into_pyobject(py).unwrap();
634 let f_val = 0.0f64.into_pyobject(py).unwrap();
635 let result = km.where_expr(cond, t_val.as_any(), f_val.as_any()).unwrap();
636 assert!(matches!(result.inner, Expr::Select(_, _, _)));
637 assert_eq!(result.temp_args.len(), 1);
638 });
639 }
640
641 #[test]
642 fn where_expr_with_three_args() {

Callers

nothing calls this directly

Calls 2

where_exprMethod · 0.80
argMethod · 0.45

Tested by

no test coverage detected