MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / error_empty

Function error_empty

ipc-storage/erasure-encoding/src/encode.rs:173–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171
172 #[test]
173 fn error_empty() {
174 let nodes = make_nodes(3);
175 let result =
176 encode_and_assign::<ReedSolomonEncoder, _>(&[], 2, 1, &nodes, RotatingAssigner::new());
177 assert!(matches!(result, Err(ErasureError::EmptyData)));
178 }
179
180 #[test]
181 fn fewer_nodes_than_shards_ok() {

Callers

nothing calls this directly

Calls 1

make_nodesFunction · 0.70

Tested by

no test coverage detected