MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / test_reader_invalid_header

Function test_reader_invalid_header

src/avro/src/reader.rs:1064–1068  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1062
1063 #[mz_ore::test]
1064 fn test_reader_invalid_header() {
1065 let schema: Schema = SCHEMA.parse().unwrap();
1066 let invalid = ENCODED.iter().skip(1).copied().collect::<Vec<u8>>();
1067 assert!(Reader::with_schema(&schema, &invalid[..]).is_err());
1068 }
1069
1070 #[mz_ore::test]
1071 #[cfg_attr(miri, ignore)] // unsupported operation: inline assembly is not supported

Callers

nothing calls this directly

Calls 4

unwrapMethod · 0.80
parseMethod · 0.45
skipMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected