()
| 1425 | |
| 1426 | #[test] |
| 1427 | fn test_empty_bounds_range() { |
| 1428 | let attr = quote!(category("Math: Arithmetic")); |
| 1429 | let input = quote!( |
| 1430 | fn add(a: f64, #[soft()] b: f64) -> f64 { |
| 1431 | a + b |
| 1432 | } |
| 1433 | ); |
| 1434 | |
| 1435 | let result = parse_node_fn(attr, input); |
| 1436 | assert!(result.is_err()); |
| 1437 | let error_message = result.unwrap_err().to_string(); |
| 1438 | assert!(error_message.contains("expected a range like `0..100`, `..100`, or `0..`")); |
| 1439 | } |
| 1440 | |
| 1441 | #[test] |
| 1442 | fn test_async_node() { |
nothing calls this directly
no test coverage detected