MCPcopy Create free account
hub / github.com/elast0ny/shared_memory / persistence

Function persistence

tests/posix_semantics.rs:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5#[test]
6fn persistence() {
7 let os_id = {
8 let mut shmem = ShmemConf::new().size(4096).create().unwrap();
9 shmem.set_owner(false);
10 String::from(shmem.get_os_id())
11 };
12 let mut shmem = ShmemConf::new().os_id(os_id).open().unwrap();
13 shmem.set_owner(true);
14}
15
16#[test]
17fn posix_behavior() {

Callers

nothing calls this directly

Calls 6

createMethod · 0.80
sizeMethod · 0.80
get_os_idMethod · 0.80
openMethod · 0.80
os_idMethod · 0.80
set_ownerMethod · 0.45

Tested by

no test coverage detected