MCPcopy Create free account
hub / github.com/3Hren/msgpack-rust / fail_pack_too_small_buffer

Function fail_pack_too_small_buffer

tests/func/encode/null.rs:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12#[test]
13fn fail_pack_too_small_buffer() {
14 let mut buf = [];
15
16 match write_nil(&mut &mut buf[..]) {
17 Err(FixedValueWriteError(..)) => (),
18 other => panic!("unexpected result: {:?}", other)
19 }
20}

Callers

nothing calls this directly

Calls 1

write_nilFunction · 0.85

Tested by

no test coverage detected