()
| 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() { |
nothing calls this directly
no test coverage detected