(file_name: &str)
| 277 | } |
| 278 | |
| 279 | fn read_file_from_local_bin(file_name: &str) -> Vec<u8> { |
| 280 | let mut file_path = local_bin(); |
| 281 | file_path.push(file_name); |
| 282 | |
| 283 | let mut file = File::open(&file_path) |
| 284 | .unwrap_or_else(|_| panic!("Failed to open file: {}", file_path.to_str().unwrap())); |
| 285 | let mut bytes = Vec::new(); |
| 286 | file.read_to_end(&mut bytes).expect("Failed to read file"); |
| 287 | bytes |
| 288 | } |
no test coverage detected