Skip to content

Commit

Permalink
pbo: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Nov 9, 2024
1 parent 58da23b commit 643baa2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions libs/pbo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ mod error;
pub mod file;
mod model;
mod read;
pub mod tests;
mod write;

pub use error::Error;
Expand Down
2 changes: 1 addition & 1 deletion libs/pbo/tests/utils.rs → libs/pbo/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::{fs::File, io::Read};

use hemtt_pbo::{Checksum, Header, Mime, ReadablePbo};
use crate::{Checksum, Header, Mime, ReadablePbo};

#[must_use]
#[allow(clippy::too_many_arguments)]
Expand Down
7 changes: 4 additions & 3 deletions libs/pbo/tests/ace_weather.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

use std::{fs::File, io::Read};

use hemtt_pbo::{Checksum, Mime, WritablePbo};
use hemtt_pbo::{
tests::{file, header, pbo},
Checksum, Mime, WritablePbo,
};

mod utils;
use sha1::{Digest, Sha1};
use utils::*;

#[allow(clippy::too_many_lines)]
#[test]
Expand Down
4 changes: 1 addition & 3 deletions libs/pbo/tests/exported_mission.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#![allow(clippy::unwrap_used)]

mod utils;
use std::fs::File;

use hemtt_pbo::Checksum;
use utils::*;
use hemtt_pbo::{tests::pbo, Checksum};

#[test]
fn exported_mission() {
Expand Down

0 comments on commit 643baa2

Please sign in to comment.