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

Function prefetch_pages_null_safe

nodedb/src/data/io/prefetch.rs:234–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232
233 #[test]
234 fn prefetch_pages_null_safe() {
235 // Should not crash on null pointer.
236 prefetch_pages(std::ptr::null(), 0);
237 prefetch_pages(std::ptr::null(), 4096);
238 }
239
240 #[test]
241 fn read_majflt() {

Callers

nothing calls this directly

Calls 1

prefetch_pagesFunction · 0.85

Tested by

no test coverage detected