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