aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/advisory
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/advisory')
-rw-r--r--crates/shirabe/tests/advisory/auditor_test.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/shirabe/tests/advisory/auditor_test.rs b/crates/shirabe/tests/advisory/auditor_test.rs
index 516c4d1..c908f0b 100644
--- a/crates/shirabe/tests/advisory/auditor_test.rs
+++ b/crates/shirabe/tests/advisory/auditor_test.rs
@@ -1,5 +1,8 @@
//! ref: composer/tests/Composer/Test/Advisory/AuditorTest.php
+use crate::io_mock::{Expectation, get_io_mock};
+use crate::test_case::get_complete_package;
+use crate::test_case::get_package;
use chrono::Utc;
use indexmap::IndexMap;
use shirabe::advisory::AnySecurityAdvisory;
@@ -26,10 +29,6 @@ use shirabe_semver::VersionParser;
use shirabe_semver::constraint::AnyConstraint;
use shirabe_semver::constraint::SimpleConstraint;
-use crate::io_mock::{Expectation, get_io_mock};
-use crate::test_case::get_complete_package;
-use crate::test_case::get_package;
-
fn constraint(operator: &str, version: &str) -> shirabe_semver::constraint::AnyConstraint {
SimpleConstraint::new(operator.to_string(), version.to_string(), None).into()
}