Skip to content

Commit 92d9a94

Browse files
committed
chore: Migrated testsuite to testsuite::prelude
1 parent 66fc105 commit 92d9a94

File tree

487 files changed

+487
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

487 files changed

+487
-537
lines changed

tests/testsuite/advanced_env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! -Zadvanced-env tests
22
3-
use cargo_test_support::prelude::*;
3+
use crate::prelude::*;
44
use cargo_test_support::{paths, project, registry::Package};
55

66
#[cargo_test]

tests/testsuite/alt_registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
33
use std::fs;
44

5+
use crate::prelude::*;
56
use cargo_test_support::compare::assert_e2e;
6-
use cargo_test_support::prelude::*;
77
use cargo_test_support::publish::validate_alt_upload;
88
use cargo_test_support::registry::{self, Package, RegistryBuilder};
99
use cargo_test_support::str;

tests/testsuite/artifact_dep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//! Tests specific to artifact dependencies, designated using
22
//! the new `dep = { artifact = "bin", … }` syntax in manifests.
33
4+
use crate::prelude::*;
45
use crate::utils::cross_compile::{
56
can_run_on_host as cross_compile_can_run_on_host, disabled as cross_compile_disabled,
67
};
78
use cargo_test_support::compare::assert_e2e;
8-
use cargo_test_support::prelude::*;
99
use cargo_test_support::registry::{Package, RegistryBuilder};
1010
use cargo_test_support::str;
1111
use cargo_test_support::{

tests/testsuite/artifact_dir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::env;
44
use std::fs;
55
use std::path::Path;
66

7-
use cargo_test_support::prelude::*;
7+
use crate::prelude::*;
88
use cargo_test_support::sleep_ms;
99
use cargo_test_support::str;
1010
use cargo_test_support::{basic_manifest, project};

tests/testsuite/bad_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Tests for some invalid .cargo/config files.
22
3+
use crate::prelude::*;
34
use cargo_test_support::git::cargo_uses_gitoxide;
4-
use cargo_test_support::prelude::*;
55
use cargo_test_support::registry::{self, Package};
66
use cargo_test_support::str;
77
use cargo_test_support::{basic_manifest, project, rustc_host};

tests/testsuite/bad_manifest_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Tests for invalid --manifest-path arguments.
22
3-
use cargo_test_support::prelude::*;
3+
use crate::prelude::*;
44
use cargo_test_support::{basic_bin_manifest, main_file, project, str};
55

66
#[track_caller]

tests/testsuite/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Tests for the `cargo bench` command.
22
3-
use cargo_test_support::prelude::*;
3+
use crate::prelude::*;
44
use cargo_test_support::{basic_bin_manifest, basic_lib_manifest, basic_manifest, project, str};
55

66
#[cargo_test(nightly, reason = "bench")]

tests/testsuite/binary_name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Tests for `cargo-features = ["different-binary-name"]`.
22
3+
use crate::prelude::*;
34
use cargo_test_support::install::assert_has_installed_exe;
45
use cargo_test_support::install::assert_has_not_installed_exe;
56
use cargo_test_support::is_nightly;
67
use cargo_test_support::paths;
7-
use cargo_test_support::prelude::*;
88
use cargo_test_support::project;
99
use cargo_test_support::str;
1010

tests/testsuite/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::fs;
55
use std::io::Read;
66
use std::process::Stdio;
77

8+
use crate::prelude::*;
89
use crate::utils::tools;
910
use cargo::core::compiler::UserIntent;
1011
use cargo::core::Shell;
@@ -13,7 +14,6 @@ use cargo::ops::CompileOptions;
1314
use cargo::GlobalContext;
1415
use cargo_test_support::compare::assert_e2e;
1516
use cargo_test_support::paths::root;
16-
use cargo_test_support::prelude::*;
1717
use cargo_test_support::registry::Package;
1818
use cargo_test_support::str;
1919
use cargo_test_support::{

tests/testsuite/build_dir.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
use std::path::PathBuf;
1313

14+
use crate::prelude::*;
1415
use cargo_test_support::{paths, project, str};
1516
use cargo_test_support::{prelude::*, Project};
1617
use std::env::consts::{DLL_PREFIX, DLL_SUFFIX, EXE_SUFFIX};

0 commit comments

Comments
 (0)