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

Function execute_map_extra_arg_error

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

Source from the content-addressed store, hash-verified

702
703 #[test]
704 fn execute_map_extra_arg_error() {
705 let km = PyKernelModule::new();
706 let x = km.arg("x");
707 let spec = km.elementwise(x).unwrap();
708
709 let mut args = HashMap::new();
710 args.insert(
711 "x".to_string(),
712 ArgValue::Buffer(Buffer::from_f64_vec(vec![1.0])),
713 );
714 args.insert("extra".to_string(), ArgValue::Scalar(99.0));
715 let map_spec = PyMapSpec { spec, args };
716 let err = execute_map(&map_spec).unwrap_err();
717 assert!(matches!(err, crate::error::ParsecError::ArgError(_)));
718 }
719
720 // --- map() via GIL ---
721

Callers

nothing calls this directly

Calls 4

BufferClass · 0.85
execute_mapFunction · 0.85
argMethod · 0.45
elementwiseMethod · 0.45

Tested by

no test coverage detected