()
| 246 | for (number, hex_encoding) in binary_encodings().iter() { |
| 247 | let encoded = GenericDatumWriter::builder(&Schema::Int) |
| 248 | .build()? |
| 249 | .write_value_to_vec(Value::Int(*number as i32))?; |
| 250 | assert_eq!(&encoded, hex_encoding); |
| 251 | } |
| 252 | |
| 253 | Ok(()) |
| 254 | } |
| 255 | |
| 256 | #[test] |
| 257 | fn test_binary_long_encoding() -> TestResult { |
| 258 | for (number, hex_encoding) in binary_encodings().iter() { |
| 259 | let encoded = GenericDatumWriter::builder(&Schema::Long) |
| 260 | .build()? |
nothing calls this directly
no test coverage detected