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

Function pack_nil

tests/func/encode/value_ref.rs:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5#[test]
6fn pack_nil() {
7 let mut buf = [0x00];
8
9 let val = ValueRef::Nil;
10
11 write_value_ref(&mut &mut buf[..], &val).unwrap();
12
13 assert_eq!([0xc0], buf);
14}
15
16#[test]
17fn pack_nil_when_buffer_is_tool_small() {

Callers

nothing calls this directly

Calls 1

write_value_refFunction · 0.85

Tested by

no test coverage detected