()
| 265 | |
| 266 | #[test] |
| 267 | fn test_reader_invalid_header() -> TestResult { |
| 268 | let schema = Schema::parse_str(SCHEMA)?; |
| 269 | let mut invalid = &ENCODED[1..]; |
| 270 | assert!( |
| 271 | Reader::builder(&mut invalid) |
| 272 | .reader_schema(&schema) |
| 273 | .build() |
| 274 | .is_err() |
| 275 | ); |
| 276 | |
| 277 | Ok(()) |
| 278 | } |
| 279 | |
| 280 | #[test] |
| 281 | fn test_reader_invalid_block() -> TestResult { |
nothing calls this directly
no outgoing calls
no test coverage detected