()
| 1171 | |
| 1172 | #[test] |
| 1173 | fn test_from_serialized_bytes() { |
| 1174 | let mut builder = BinaryRowBuilder::new(1); |
| 1175 | builder.write_int(0, 42); |
| 1176 | let serialized = builder.build_serialized(); |
| 1177 | |
| 1178 | let row = BinaryRow::from_serialized_bytes(&serialized).unwrap(); |
| 1179 | assert_eq!(row.arity(), 1); |
| 1180 | assert!(!row.is_null_at(0)); |
| 1181 | assert_eq!(row.get_int(0).unwrap(), 42); |
| 1182 | } |
| 1183 | |
| 1184 | #[test] |
| 1185 | fn test_from_serialized_bytes_too_short() { |
nothing calls this directly
no test coverage detected