()
| 228 | |
| 229 | #[test] |
| 230 | fn test_malformed() { |
| 231 | || -> Result<()> { |
| 232 | let c = create_context()?; |
| 233 | let g = c.create_graph()?; |
| 234 | let i1 = g.input(scalar_type(UINT64))?.a2b()?; |
| 235 | assert!(g |
| 236 | .custom_op( |
| 237 | CustomOperation::new(Min { |
| 238 | signed_comparison: false |
| 239 | }), |
| 240 | vec![i1.clone()] |
| 241 | ) |
| 242 | .is_err()); |
| 243 | assert!(g |
| 244 | .custom_op( |
| 245 | CustomOperation::new(Max { |
| 246 | signed_comparison: false |
| 247 | }), |
| 248 | vec![i1.clone()] |
| 249 | ) |
| 250 | .is_err()); |
| 251 | Ok(()) |
| 252 | }() |
| 253 | .unwrap(); |
| 254 | } |
| 255 | |
| 256 | #[test] |
| 257 | fn test_vector() { |
nothing calls this directly
no test coverage detected