()
| 557 | |
| 558 | #[test] |
| 559 | fn rewrite_args_preserves_name() { |
| 560 | let e = PyExpr::named(Expr::ArgRef(10), "x".to_string(), 10); |
| 561 | let mapping = HashMap::from([(10, 0)]); |
| 562 | let rewritten = e.rewrite_args_internal(&mapping); |
| 563 | assert_eq!(rewritten.name, Some("x".to_string())); |
| 564 | } |
| 565 | |
| 566 | // --- #[pymethods] via GIL --- |
| 567 |
nothing calls this directly
no test coverage detected