Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Jan 30, 2025
1 parent e4e90c2 commit e133939
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/src/artifacts/os/windows/mft/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,7 @@ fn output_mft(

#[cfg(test)]
mod tests {
use super::parse_mft;
use crate::structs::toml::Output;
use std::path::PathBuf;

fn output_options(name: &str, output: &str, directory: &str, compress: bool) -> Output {
Output {
Expand All @@ -625,7 +623,11 @@ mod tests {
}

#[test]
#[cfg(target_family = "unix")]
fn test_parse_mft() {
use super::parse_mft;
use std::path::PathBuf;

let mut test_location = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
test_location.push("tests/test_data/dfir/windows/mft/win11/MFT");
let mut output = output_options("mft_test", "local", "./tmp", false);
Expand Down Expand Up @@ -661,7 +663,11 @@ mod tests {
}

#[test]
#[cfg(target_family = "unix")]
fn test_nonresident_large_record_length() {
use super::parse_mft;
use std::path::PathBuf;

let mut test_location = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
test_location.push("tests/test_data/windows/mft/win11/nonresident.raw");

Expand Down

0 comments on commit e133939

Please sign in to comment.