From 41cd166887bb8672cfc3952bf2c19b43f003497c Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Mon, 20 Feb 2023 11:25:40 -0600 Subject: [PATCH] refactor: Rename test names to `case` for `init` --- tests/testsuite/init/auto_git/mod.rs | 2 +- tests/testsuite/init/bin_already_exists_explicit/mod.rs | 2 +- tests/testsuite/init/bin_already_exists_explicit_nosrc/mod.rs | 2 +- tests/testsuite/init/bin_already_exists_implicit/mod.rs | 2 +- .../testsuite/init/bin_already_exists_implicit_namenosrc/mod.rs | 2 +- tests/testsuite/init/bin_already_exists_implicit_namesrc/mod.rs | 2 +- tests/testsuite/init/bin_already_exists_implicit_nosrc/mod.rs | 2 +- tests/testsuite/init/both_lib_and_bin/mod.rs | 2 +- .../init/cant_create_library_when_both_binlib_present/mod.rs | 2 +- tests/testsuite/init/confused_by_multiple_lib_files/mod.rs | 2 +- .../init/creates_binary_when_both_binlib_present/mod.rs | 2 +- .../init/creates_binary_when_instructed_and_has_lib_file/mod.rs | 2 +- .../creates_library_when_instructed_and_has_bin_file/mod.rs | 2 +- tests/testsuite/init/explicit_bin_with_git/mod.rs | 2 +- tests/testsuite/init/formats_source/mod.rs | 2 +- tests/testsuite/init/fossil_autodetect/mod.rs | 2 +- tests/testsuite/init/git_autodetect/mod.rs | 2 +- .../init/git_ignore_exists_no_conflicting_entries/mod.rs | 2 +- tests/testsuite/init/ignores_failure_to_format_source/mod.rs | 2 +- tests/testsuite/init/inferred_bin_with_git/mod.rs | 2 +- tests/testsuite/init/inferred_lib_with_git/mod.rs | 2 +- tests/testsuite/init/invalid_dir_name/mod.rs | 2 +- tests/testsuite/init/lib_already_exists_nosrc/mod.rs | 2 +- tests/testsuite/init/lib_already_exists_src/mod.rs | 2 +- tests/testsuite/init/mercurial_autodetect/mod.rs | 2 +- tests/testsuite/init/multibin_project_name_clash/mod.rs | 2 +- tests/testsuite/init/no_filename/mod.rs | 2 +- tests/testsuite/init/path_contains_separator/mod.rs | 2 +- tests/testsuite/init/pijul_autodetect/mod.rs | 2 +- tests/testsuite/init/reserved_name/mod.rs | 2 +- tests/testsuite/init/simple_bin/mod.rs | 2 +- tests/testsuite/init/simple_git/mod.rs | 2 +- tests/testsuite/init/simple_git_ignore_exists/mod.rs | 2 +- tests/testsuite/init/simple_hg/mod.rs | 2 +- tests/testsuite/init/simple_hg_ignore_exists/mod.rs | 2 +- tests/testsuite/init/simple_lib/mod.rs | 2 +- tests/testsuite/init/unknown_flags/mod.rs | 2 +- tests/testsuite/init/with_argument/mod.rs | 2 +- 38 files changed, 38 insertions(+), 38 deletions(-) diff --git a/tests/testsuite/init/auto_git/mod.rs b/tests/testsuite/init/auto_git/mod.rs index 72a02b44fb5..68c21752065 100644 --- a/tests/testsuite/init/auto_git/mod.rs +++ b/tests/testsuite/init/auto_git/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn auto_git() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/bin_already_exists_explicit/mod.rs b/tests/testsuite/init/bin_already_exists_explicit/mod.rs index 47d2934a718..326bd218a6a 100644 --- a/tests/testsuite/init/bin_already_exists_explicit/mod.rs +++ b/tests/testsuite/init/bin_already_exists_explicit/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn bin_already_exists_explicit() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/bin_already_exists_explicit_nosrc/mod.rs b/tests/testsuite/init/bin_already_exists_explicit_nosrc/mod.rs index 3d5197f58a3..1f16fb659aa 100644 --- a/tests/testsuite/init/bin_already_exists_explicit_nosrc/mod.rs +++ b/tests/testsuite/init/bin_already_exists_explicit_nosrc/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn bin_already_exists_explicit_nosrc() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/bin_already_exists_implicit/mod.rs b/tests/testsuite/init/bin_already_exists_implicit/mod.rs index 01741fadc96..12349a09bdd 100644 --- a/tests/testsuite/init/bin_already_exists_implicit/mod.rs +++ b/tests/testsuite/init/bin_already_exists_implicit/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn bin_already_exists_implicit() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/bin_already_exists_implicit_namenosrc/mod.rs b/tests/testsuite/init/bin_already_exists_implicit_namenosrc/mod.rs index 31498176f52..fe65940dbdc 100644 --- a/tests/testsuite/init/bin_already_exists_implicit_namenosrc/mod.rs +++ b/tests/testsuite/init/bin_already_exists_implicit_namenosrc/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn bin_already_exists_implicit_namenosrc() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/bin_already_exists_implicit_namesrc/mod.rs b/tests/testsuite/init/bin_already_exists_implicit_namesrc/mod.rs index c0fea06b7d0..d3e8e66df7c 100644 --- a/tests/testsuite/init/bin_already_exists_implicit_namesrc/mod.rs +++ b/tests/testsuite/init/bin_already_exists_implicit_namesrc/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn bin_already_exists_implicit_namesrc() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/bin_already_exists_implicit_nosrc/mod.rs b/tests/testsuite/init/bin_already_exists_implicit_nosrc/mod.rs index 55f3484be6b..fe65940dbdc 100644 --- a/tests/testsuite/init/bin_already_exists_implicit_nosrc/mod.rs +++ b/tests/testsuite/init/bin_already_exists_implicit_nosrc/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn bin_already_exists_implicit_nosrc() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/both_lib_and_bin/mod.rs b/tests/testsuite/init/both_lib_and_bin/mod.rs index b4b51972361..c9232320a17 100644 --- a/tests/testsuite/init/both_lib_and_bin/mod.rs +++ b/tests/testsuite/init/both_lib_and_bin/mod.rs @@ -4,7 +4,7 @@ use cargo_test_support::prelude::*; use cargo_test_support::curr_dir; #[cargo_test] -fn both_lib_and_bin() { +fn case() { let cwd = paths::root(); snapbox::cmd::Command::cargo_ui() diff --git a/tests/testsuite/init/cant_create_library_when_both_binlib_present/mod.rs b/tests/testsuite/init/cant_create_library_when_both_binlib_present/mod.rs index 88eb72119d9..5e9e1b94c48 100644 --- a/tests/testsuite/init/cant_create_library_when_both_binlib_present/mod.rs +++ b/tests/testsuite/init/cant_create_library_when_both_binlib_present/mod.rs @@ -4,7 +4,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn cant_create_library_when_both_binlib_present() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/confused_by_multiple_lib_files/mod.rs b/tests/testsuite/init/confused_by_multiple_lib_files/mod.rs index eddf3af55f0..d1cba2ff71f 100644 --- a/tests/testsuite/init/confused_by_multiple_lib_files/mod.rs +++ b/tests/testsuite/init/confused_by_multiple_lib_files/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn confused_by_multiple_lib_files() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/creates_binary_when_both_binlib_present/mod.rs b/tests/testsuite/init/creates_binary_when_both_binlib_present/mod.rs index 7689e0b14ce..326bd218a6a 100644 --- a/tests/testsuite/init/creates_binary_when_both_binlib_present/mod.rs +++ b/tests/testsuite/init/creates_binary_when_both_binlib_present/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn creates_binary_when_both_binlib_present() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/creates_binary_when_instructed_and_has_lib_file/mod.rs b/tests/testsuite/init/creates_binary_when_instructed_and_has_lib_file/mod.rs index 50517f4ada3..326bd218a6a 100644 --- a/tests/testsuite/init/creates_binary_when_instructed_and_has_lib_file/mod.rs +++ b/tests/testsuite/init/creates_binary_when_instructed_and_has_lib_file/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn creates_binary_when_instructed_and_has_lib_file() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/creates_library_when_instructed_and_has_bin_file/mod.rs b/tests/testsuite/init/creates_library_when_instructed_and_has_bin_file/mod.rs index a207e234d24..59c192cb9ec 100644 --- a/tests/testsuite/init/creates_library_when_instructed_and_has_bin_file/mod.rs +++ b/tests/testsuite/init/creates_library_when_instructed_and_has_bin_file/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn creates_library_when_instructed_and_has_bin_file() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/explicit_bin_with_git/mod.rs b/tests/testsuite/init/explicit_bin_with_git/mod.rs index 10ba3364566..7314e955c03 100644 --- a/tests/testsuite/init/explicit_bin_with_git/mod.rs +++ b/tests/testsuite/init/explicit_bin_with_git/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn explicit_bin_with_git() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/formats_source/mod.rs b/tests/testsuite/init/formats_source/mod.rs index b8454beea9e..ac1fb627154 100644 --- a/tests/testsuite/init/formats_source/mod.rs +++ b/tests/testsuite/init/formats_source/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::{process, Project}; use cargo_test_support::curr_dir; #[cargo_test] -fn formats_source() { +fn case() { // This cannot use `requires_rustfmt` because rustfmt is not available in // the rust-lang/rust environment. Additionally, if running cargo without // rustup (but with rustup installed), this test also fails due to HOME diff --git a/tests/testsuite/init/fossil_autodetect/mod.rs b/tests/testsuite/init/fossil_autodetect/mod.rs index 87e3710b56b..d45ba868ad5 100644 --- a/tests/testsuite/init/fossil_autodetect/mod.rs +++ b/tests/testsuite/init/fossil_autodetect/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn fossil_autodetect() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/git_autodetect/mod.rs b/tests/testsuite/init/git_autodetect/mod.rs index 7ddf6200afd..aef47bc7db8 100644 --- a/tests/testsuite/init/git_autodetect/mod.rs +++ b/tests/testsuite/init/git_autodetect/mod.rs @@ -6,7 +6,7 @@ use std::fs; use cargo_test_support::curr_dir; #[cargo_test] -fn git_autodetect() { +fn case() { let project_root = &paths::root().join("foo"); // Need to create `.git` dir manually because it cannot be tracked under a git repo fs::create_dir_all(project_root.join(".git")).unwrap(); diff --git a/tests/testsuite/init/git_ignore_exists_no_conflicting_entries/mod.rs b/tests/testsuite/init/git_ignore_exists_no_conflicting_entries/mod.rs index ed037a0dab2..cd4437c6537 100644 --- a/tests/testsuite/init/git_ignore_exists_no_conflicting_entries/mod.rs +++ b/tests/testsuite/init/git_ignore_exists_no_conflicting_entries/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn git_ignore_exists_no_conflicting_entries() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/ignores_failure_to_format_source/mod.rs b/tests/testsuite/init/ignores_failure_to_format_source/mod.rs index b27abe6da5e..fd9394049fc 100644 --- a/tests/testsuite/init/ignores_failure_to_format_source/mod.rs +++ b/tests/testsuite/init/ignores_failure_to_format_source/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn ignores_failure_to_format_source() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/inferred_bin_with_git/mod.rs b/tests/testsuite/init/inferred_bin_with_git/mod.rs index 73ae1ce5624..80bec8893cc 100644 --- a/tests/testsuite/init/inferred_bin_with_git/mod.rs +++ b/tests/testsuite/init/inferred_bin_with_git/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn inferred_bin_with_git() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/inferred_lib_with_git/mod.rs b/tests/testsuite/init/inferred_lib_with_git/mod.rs index 8abeba5b376..80bec8893cc 100644 --- a/tests/testsuite/init/inferred_lib_with_git/mod.rs +++ b/tests/testsuite/init/inferred_lib_with_git/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn inferred_lib_with_git() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/invalid_dir_name/mod.rs b/tests/testsuite/init/invalid_dir_name/mod.rs index ca65a7c39f9..2b1be9022b0 100644 --- a/tests/testsuite/init/invalid_dir_name/mod.rs +++ b/tests/testsuite/init/invalid_dir_name/mod.rs @@ -5,7 +5,7 @@ use std::fs; use cargo_test_support::curr_dir; #[cargo_test] -fn invalid_dir_name() { +fn case() { let foo = &paths::root().join("foo.bar"); fs::create_dir_all(foo).unwrap(); diff --git a/tests/testsuite/init/lib_already_exists_nosrc/mod.rs b/tests/testsuite/init/lib_already_exists_nosrc/mod.rs index 7df85238b0e..d3e8e66df7c 100644 --- a/tests/testsuite/init/lib_already_exists_nosrc/mod.rs +++ b/tests/testsuite/init/lib_already_exists_nosrc/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn lib_already_exists_nosrc() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/lib_already_exists_src/mod.rs b/tests/testsuite/init/lib_already_exists_src/mod.rs index 3b53798349d..d3e8e66df7c 100644 --- a/tests/testsuite/init/lib_already_exists_src/mod.rs +++ b/tests/testsuite/init/lib_already_exists_src/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn lib_already_exists_src() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/mercurial_autodetect/mod.rs b/tests/testsuite/init/mercurial_autodetect/mod.rs index a3e334fc361..d45ba868ad5 100644 --- a/tests/testsuite/init/mercurial_autodetect/mod.rs +++ b/tests/testsuite/init/mercurial_autodetect/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn mercurial_autodetect() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/multibin_project_name_clash/mod.rs b/tests/testsuite/init/multibin_project_name_clash/mod.rs index f98f2337466..fdd4476d93b 100644 --- a/tests/testsuite/init/multibin_project_name_clash/mod.rs +++ b/tests/testsuite/init/multibin_project_name_clash/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn multibin_project_name_clash() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/no_filename/mod.rs b/tests/testsuite/init/no_filename/mod.rs index d608586aaf5..8edfd282316 100644 --- a/tests/testsuite/init/no_filename/mod.rs +++ b/tests/testsuite/init/no_filename/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::curr_dir; #[cfg(not(windows))] #[cargo_test] -fn no_filename() { +fn case() { snapbox::cmd::Command::cargo_ui() .arg_line("init /") .current_dir(paths::root()) diff --git a/tests/testsuite/init/path_contains_separator/mod.rs b/tests/testsuite/init/path_contains_separator/mod.rs index 033836ab13c..0a12f4269d2 100644 --- a/tests/testsuite/init/path_contains_separator/mod.rs +++ b/tests/testsuite/init/path_contains_separator/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::{t, Project}; use cargo_test_support::curr_dir; #[cargo_test] -fn path_contains_separator() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root().join("test:ing"); diff --git a/tests/testsuite/init/pijul_autodetect/mod.rs b/tests/testsuite/init/pijul_autodetect/mod.rs index 472f240b2a0..d45ba868ad5 100644 --- a/tests/testsuite/init/pijul_autodetect/mod.rs +++ b/tests/testsuite/init/pijul_autodetect/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn pijul_autodetect() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/reserved_name/mod.rs b/tests/testsuite/init/reserved_name/mod.rs index 3be1d04bf14..cc65fd0a183 100644 --- a/tests/testsuite/init/reserved_name/mod.rs +++ b/tests/testsuite/init/reserved_name/mod.rs @@ -5,7 +5,7 @@ use std::fs; use cargo_test_support::curr_dir; #[cargo_test] -fn reserved_name() { +fn case() { let project_root = &paths::root().join("test"); fs::create_dir_all(project_root).unwrap(); diff --git a/tests/testsuite/init/simple_bin/mod.rs b/tests/testsuite/init/simple_bin/mod.rs index 63e0982bc25..eaf0955f9f8 100644 --- a/tests/testsuite/init/simple_bin/mod.rs +++ b/tests/testsuite/init/simple_bin/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn simple_bin() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/simple_git/mod.rs b/tests/testsuite/init/simple_git/mod.rs index 1f55373f98b..c373fe2a2c6 100644 --- a/tests/testsuite/init/simple_git/mod.rs +++ b/tests/testsuite/init/simple_git/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn simple_git() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/simple_git_ignore_exists/mod.rs b/tests/testsuite/init/simple_git_ignore_exists/mod.rs index 2876b6989cd..142e86efdc0 100644 --- a/tests/testsuite/init/simple_git_ignore_exists/mod.rs +++ b/tests/testsuite/init/simple_git_ignore_exists/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn simple_git_ignore_exists() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/simple_hg/mod.rs b/tests/testsuite/init/simple_hg/mod.rs index 3aad971bfb2..1d676545304 100644 --- a/tests/testsuite/init/simple_hg/mod.rs +++ b/tests/testsuite/init/simple_hg/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test(requires_hg)] -fn simple_hg() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/simple_hg_ignore_exists/mod.rs b/tests/testsuite/init/simple_hg_ignore_exists/mod.rs index cb934b73600..d45ba868ad5 100644 --- a/tests/testsuite/init/simple_hg_ignore_exists/mod.rs +++ b/tests/testsuite/init/simple_hg_ignore_exists/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn simple_hg_ignore_exists() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/simple_lib/mod.rs b/tests/testsuite/init/simple_lib/mod.rs index d46140e819f..d6bae51672a 100644 --- a/tests/testsuite/init/simple_lib/mod.rs +++ b/tests/testsuite/init/simple_lib/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn simple_lib() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root(); diff --git a/tests/testsuite/init/unknown_flags/mod.rs b/tests/testsuite/init/unknown_flags/mod.rs index 91037821e94..4289b4b9ec9 100644 --- a/tests/testsuite/init/unknown_flags/mod.rs +++ b/tests/testsuite/init/unknown_flags/mod.rs @@ -4,7 +4,7 @@ use cargo_test_support::prelude::*; use cargo_test_support::curr_dir; #[cargo_test] -fn unknown_flags() { +fn case() { snapbox::cmd::Command::cargo_ui() .arg_line("init foo --flag") .current_dir(paths::root()) diff --git a/tests/testsuite/init/with_argument/mod.rs b/tests/testsuite/init/with_argument/mod.rs index 7d1b20e5e67..0b5e342a138 100644 --- a/tests/testsuite/init/with_argument/mod.rs +++ b/tests/testsuite/init/with_argument/mod.rs @@ -5,7 +5,7 @@ use cargo_test_support::Project; use cargo_test_support::curr_dir; #[cargo_test] -fn with_argument() { +fn case() { let project = Project::from_template(curr_dir!().join("in")); let project_root = &project.root();