MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / empty_encoder

Function empty_encoder

nodedb-codec/src/gorilla.rs:367–373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365
366 #[test]
367 fn empty_encoder() {
368 let enc = GorillaEncoder::new();
369 assert_eq!(enc.count(), 0);
370 let data = enc.finish();
371 assert_eq!(data.len(), 4);
372 assert_eq!(u32::from_le_bytes(data[0..4].try_into().unwrap()), 0);
373 }
374
375 #[test]
376 fn single_sample_roundtrip() {

Callers

nothing calls this directly

Calls 1

finishMethod · 0.45

Tested by

no test coverage detected