MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / test_empty_bounds_range

Function test_empty_bounds_range

node-graph/node-macro/src/parsing.rs:1427–1439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

parse_node_fnFunction · 0.85

Tested by

no test coverage detected