Skip to content

Commit 3a615ca

Browse files
committed
feat(test): Add CargoPathExt to prelude
1 parent 5d4ac65 commit 3a615ca

35 files changed

+17
-34
lines changed

crates/cargo-test-support/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ pub mod tools;
7474

7575
pub mod prelude {
7676
pub use crate::cargo_test;
77+
pub use crate::paths::CargoPathExt;
7778
pub use crate::ArgLine;
7879
pub use crate::CargoCommand;
7980
pub use crate::ChannelChanger;

tests/testsuite/bench.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Tests for the `cargo bench` command.
22
3-
use cargo_test_support::paths::CargoPathExt;
43
use cargo_test_support::prelude::*;
54
use cargo_test_support::{basic_bin_manifest, basic_lib_manifest, basic_manifest, project, str};
65

tests/testsuite/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use cargo::{
1212
GlobalContext,
1313
};
1414
use cargo_test_support::compare::assert_e2e;
15-
use cargo_test_support::paths::{root, CargoPathExt};
15+
use cargo_test_support::paths::root;
1616
use cargo_test_support::prelude::*;
1717
use cargo_test_support::registry::Package;
1818
use cargo_test_support::str;

tests/testsuite/build_script.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::thread;
77

88
use cargo_test_support::compare::assert_e2e;
99
use cargo_test_support::install::cargo_home;
10-
use cargo_test_support::paths::CargoPathExt;
1110
use cargo_test_support::prelude::*;
1211
use cargo_test_support::registry::Package;
1312
use cargo_test_support::str;

tests/testsuite/cache_lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use std::thread::JoinHandle;
44

55
use cargo::util::cache_lock::{CacheLockMode, CacheLocker};
6-
use cargo_test_support::paths::{self, CargoPathExt};
6+
use cargo_test_support::paths;
77
use cargo_test_support::prelude::*;
88
use cargo_test_support::{retry, thread_wait_timeout, threaded_timeout};
99

tests/testsuite/cargo_command.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::process::Stdio;
88
use std::str;
99

1010
use cargo_test_support::basic_manifest;
11-
use cargo_test_support::paths::CargoPathExt;
1211
use cargo_test_support::prelude::*;
1312
use cargo_test_support::registry::Package;
1413
use cargo_test_support::str;

tests/testsuite/check.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::fmt::{self, Write};
44

55
use cargo_test_support::compare::assert_e2e;
66
use cargo_test_support::install::exe;
7-
use cargo_test_support::paths::CargoPathExt;
87
use cargo_test_support::prelude::*;
98
use cargo_test_support::registry::Package;
109
use cargo_test_support::str;

tests/testsuite/clean.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Tests for the `cargo clean` command.
22
3-
use cargo_test_support::paths::CargoPathExt;
43
use cargo_test_support::prelude::*;
54
use cargo_test_support::registry::Package;
65
use cargo_test_support::str;

tests/testsuite/dep_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::path::Path;
66
use std::str;
77

88
use cargo_test_support::compare::assert_e2e;
9-
use cargo_test_support::paths::{self, CargoPathExt};
9+
use cargo_test_support::paths;
1010
use cargo_test_support::prelude::*;
1111
use cargo_test_support::registry::Package;
1212
use cargo_test_support::str;

tests/testsuite/doc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::fs;
44
use std::str;
55

66
use cargo::core::compiler::RustDocFingerprint;
7-
use cargo_test_support::paths::CargoPathExt;
87
use cargo_test_support::prelude::*;
98
use cargo_test_support::registry::Package;
109
use cargo_test_support::str;

0 commit comments

Comments
 (0)