MCPcopy Create free account
hub / github.com/aws/clock-bound / test_reader_file_is_empty

Function test_reader_file_is_empty

clock-bound/src/vmclock/shm_reader.rs:466–472  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

464 }
465
466 /// Assert that the reader will return an error when it tries to open a file that is empty.
467 #[test]
468 fn test_reader_file_is_empty() {
469 let vmclock_shm_tempfile = NamedTempFile::new().expect("create vmclock file failed");
470 let vmclock_shm_temppath = vmclock_shm_tempfile.into_temp_path();
471 let vmclock_shm_path = vmclock_shm_temppath.to_str().unwrap();
472
473 assert!(VMClockShmReader::new(&vmclock_shm_path).is_err());
474 }
475

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected