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

Function main

avro/examples/test_interop_single_object_encoding.rs:54–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54fn main() -> Result<(), Box<dyn Error>> {
55 let interop_root_folder: String = std::env::var("INTEROP_ROOT_FOLDER")?;
56 let resource_folder = format!("{interop_root_folder}/share/test/data/messageV1");
57
58 let single_object = std::fs::read(format!("{resource_folder}/test_message.bin"))
59 .expect("File with single object not found or error occurred while reading it.");
60 test_write(&single_object);
61 test_read(&single_object);
62
63 Ok(())
64}
65
66fn test_write(expected: &[u8]) {
67 let mut encoded: Vec<u8> = Vec::new();

Callers

nothing calls this directly

Calls 3

readFunction · 0.85
test_writeFunction · 0.85
test_readFunction · 0.85

Tested by

no test coverage detected