MCPcopy Create free account
hub / github.com/RustCrypto/utils / encode_decode

Function encode_decode

blobby/src/encode.rs:137–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136 #[test]
137 fn encode_decode() {
138 let mut buf = [0u8; 4];
139 for val in 0..=270549119 {
140 let mut res = encode_vlq(val, &mut buf);
141 let val_res = read_vlq(&mut res).unwrap();
142 assert_eq!(val, val_res);
143 assert!(res.is_empty());
144 }
145 }
146
147 #[test]
148 #[rustfmt::skip]

Callers

nothing calls this directly

Calls 3

encode_vlqFunction · 0.85
read_vlqFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected