MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / test_malformed

Function test_malformed

ciphercore-base/src/ops/min_max.rs:230–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

create_contextFunction · 0.50
scalar_typeFunction · 0.50
create_graphMethod · 0.45
a2bMethod · 0.45
inputMethod · 0.45

Tested by

no test coverage detected