(node: Node)
| 23 | type_string: String, |
| 24 | } |
| 25 | fn is_network_node(node: Node) -> Result<bool> { |
| 26 | if let Operation::NOP = node.get_operation() { |
| 27 | for annotation in node.get_annotations()? { |
| 28 | if let NodeAnnotation::Send(_, _) = annotation { |
| 29 | return Ok(true); |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | Ok(false) |
| 34 | } |
| 35 | |
| 36 | fn get_buffer_length_in_items(t: Type) -> u64 { |
| 37 | if t.is_array() { |
no test coverage detected