Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3Hren/msgpack-rust
/ pack_nil
Function
pack_nil
tests/func/encode/value.rs:5–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3
4
#[test]
5
fn pack_nil() {
6
let mut buf = [0x00];
7
8
let val = Value::Nil;
9
10
write_value(&mut &mut buf[..], &val).unwrap();
11
12
assert_eq!([0xc0], buf);
13
}
Callers
nothing calls this directly
Calls
1
write_value
Function · 0.85
Tested by
no test coverage detected