MCPcopy Create free account
hub / github.com/apache/avro-rs / test_reader_invalid_header

Function test_reader_invalid_header

avro/src/reader/mod.rs:267–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected