()
| 32 | |
| 33 | #[test] |
| 34 | fn test_read_shellcode_empty() { |
| 35 | let dir = std::env::temp_dir().join("rustpacker_test_reader_empty"); |
| 36 | fs::create_dir_all(&dir).unwrap(); |
| 37 | let path = dir.join("empty.bin"); |
| 38 | fs::write(&path, &[]).unwrap(); |
| 39 | |
| 40 | let result = read_shellcode(&path); |
| 41 | assert!(result.is_empty()); |
| 42 | |
| 43 | fs::remove_dir_all(&dir).unwrap(); |
| 44 | } |
| 45 | } |
nothing calls this directly
no test coverage detected