()
| 5713 | |
| 5714 | #[test] |
| 5715 | fn test_operation_fmt_display() { |
| 5716 | let test_operation_fmt_display_helper = || -> Result<()> { |
| 5717 | let o0 = Rc::new(Operation::Input(scalar_type(UINT16))); |
| 5718 | assert_eq!(format!("{}", o0), "Input"); |
| 5719 | let o1 = Rc::new(Operation::Add); |
| 5720 | assert_eq!(format!("{}", o1), "Add"); |
| 5721 | let o2 = Rc::new(Operation::Truncate(10)); |
| 5722 | assert_eq!(format!("{}", o2), "Truncate"); |
| 5723 | let o3 = Rc::new(Operation::Get(vec![10, 20])); |
| 5724 | assert_eq!(format!("{}", o3), "Get"); |
| 5725 | let o4 = Rc::new(Operation::NOP); |
| 5726 | assert_eq!(format!("{}", o4), "NOP"); |
| 5727 | let o5 = Rc::new(Operation::CreateNamedTuple(vec![ |
| 5728 | "Name".to_string(), |
| 5729 | "Address".to_string(), |
| 5730 | ])); |
| 5731 | assert_eq!(format!("{}", o5), "CreateNamedTuple"); |
| 5732 | let o6 = Rc::new(Operation::NamedTupleGet("Name".to_string())); |
| 5733 | assert_eq!(format!("{}", o6), "NamedTupleGet"); |
| 5734 | Ok(()) |
| 5735 | }; |
| 5736 | test_operation_fmt_display_helper().unwrap(); |
| 5737 | } |
| 5738 | |
| 5739 | #[test] |
| 5740 | fn test_annotations() { |
nothing calls this directly
no test coverage detected