Skip to content

Commit

Permalink
51: Add test for result err in config mod
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusedwardhaslam committed Oct 20, 2023
1 parent dffdab5 commit f6a0660
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/fta/src/config/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,13 @@ mod tests {
assert_eq!(config.output_limit, Some(2500));
assert_eq!(config.score_cap, Some(500));
}

#[test]
fn temp_read_config_with_nonexistent_file_and_user_specified_file_path() {
let nonexistent_path = "nonexistent_file.json";

let config = read_config(nonexistent_path.to_string(), true);

assert!(config.is_err(), "Expected error, got {:?}", config);
}
}

0 comments on commit f6a0660

Please sign in to comment.