()
| 148 | |
| 149 | #[test] |
| 150 | fn empty_file_no_error() { |
| 151 | let dir = tempfile::tempdir().unwrap(); |
| 152 | let path = dir.path().join("empty.col"); |
| 153 | std::fs::File::create(&path).unwrap(); |
| 154 | let len = advise_willneed(&path).unwrap(); |
| 155 | assert_eq!(len, 0); |
| 156 | advise_dontneed(&path).unwrap(); |
| 157 | } |
| 158 | } |
nothing calls this directly
no test coverage detected