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

Function aligned_slice_pads_to_boundary

nodedb-wal/src/align.rs:232–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230
231 #[test]
232 fn aligned_slice_pads_to_boundary() {
233 let mut buf = AlignedBuf::with_default_alignment(8192).unwrap();
234 buf.write(b"short");
235 assert_eq!(buf.len(), 5);
236 assert_eq!(buf.as_aligned_slice().len(), DEFAULT_ALIGNMENT);
237 }
238
239 #[test]
240 fn clear_resets_without_dealloc() {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected