()
| 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 |
nothing calls this directly
no test coverage detected