Lines Matching refs:result
40 let result = unmarshal(&mut short_header); in test_read_eof() localVariable
41 assert!(result.is_err(), "missing type & len"); in test_read_eof()
47 let result = unmarshal(&mut bad_compound); in test_bad_compound() localVariable
48 assert!(result.is_err(), "trailing data!"); in test_bad_compound()
161 let result = packet.validate(); in test_valid_packet() localVariable
162 assert_eq!(result.is_ok(), error.is_none()); in test_valid_packet()
163 if let (Some(err), Err(got)) = (error, result) { in test_valid_packet()
304 let result = packet.marshal(); in test_compound_packet_roundtrip() localVariable
306 if let Err(got) = result { in test_compound_packet_roundtrip()
313 assert!(result.is_ok(), "must no error in test {name}"); in test_compound_packet_roundtrip()
316 let data1 = result.unwrap(); in test_compound_packet_roundtrip()