]> git.proxmox.com Git - cargo.git/commit - tests/testsuite/init/mercurial_autodetect/out/src/lib.rs
Migrate tests of `cargo-init` to snapbox
authorWeihang Lo <me@weihanglo.tw>
Sun, 1 May 2022 01:29:09 +0000 (09:29 +0800)
committerWeihang Lo <me@weihanglo.tw>
Mon, 2 May 2022 00:16:06 +0000 (08:16 +0800)
commit9171e18b72232fc120faa50d6ecb850465faf014
treea524d0bcb4c1fc61969439a55c6ae6cacc7fa4a1
parentfb2532a6f455380f3430dacd90c61e955ece8b4b
Migrate tests of `cargo-init` to snapbox

Some redundant tests are merged or deleted.

- `gitignore_appended_not_replaced` -> `git_ignore_exists_no_conflicting_entries`
- `gitignore_added_newline_in_existing` -> `git_ignore_exists_no_conflicting_entries`
- `gitignore_no_newline_in_new` -> `simple_git`
- `terminating_newline_in_existing_git_ignore` -> `git_ignore_exists_no_conflicting_entries`
- `terminating_newline_in_new_git_ignore` -> `simple_git`
- `terminating_newline_in_new_mercurial_ignore` -> `simple_hg`
- `terminating_newline_in_existing_mercurial_ignore` -> `simple_hg_ignore_exists`
- `mercurial_added_newline_in_existing` -> `simple_hg_ignore_exists`
- `mercurial_no_newline_in_new` -> `simple_hg`
- `cargo_lock_gitignored_if_lib1` -> `simple_git`
- `cargo_lock_gitignored_if_lib2` -> `inferred_lib_with_git`
- `cargo_lock_not_gitignored_if_bin2` -> `inferred_bin_with_git`
- `cargo_lock_not_gitignored_if_bin1` -> `explicit_bin_with_git`
193 files changed:
tests/snapshots/init/auto_git.in [new symlink]
tests/snapshots/init/auto_git.out/.gitignore [new file with mode: 0644]
tests/snapshots/init/auto_git.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/auto_git.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/auto_git.stderr [new file with mode: 0644]
tests/snapshots/init/auto_git.stdout [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit.in/src/main.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit.out/src/main.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit.stderr [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit.stdout [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit_nosrc.in/main.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit_nosrc.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit_nosrc.out/main.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit_nosrc.stderr [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_explicit_nosrc.stdout [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit.in/src/main.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit.out/src/main.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit.stderr [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit.stdout [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namenosrc.in/case.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namenosrc.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namenosrc.out/case.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namenosrc.stderr [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namenosrc.stdout [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namesrc.in/src/case.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namesrc.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namesrc.out/src/case.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namesrc.stderr [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_namesrc.stdout [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_nosrc.in/main.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_nosrc.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_nosrc.out/main.rs [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_nosrc.stderr [new file with mode: 0644]
tests/snapshots/init/bin_already_exists_implicit_nosrc.stdout [new file with mode: 0644]
tests/snapshots/init/both_lib_and_bin.stderr [new file with mode: 0644]
tests/snapshots/init/both_lib_and_bin.stdout [new file with mode: 0644]
tests/snapshots/init/cant_create_library_when_both_binlib_present.in/case.rs [new file with mode: 0644]
tests/snapshots/init/cant_create_library_when_both_binlib_present.in/lib.rs [new file with mode: 0644]
tests/snapshots/init/cant_create_library_when_both_binlib_present.stderr [new file with mode: 0644]
tests/snapshots/init/cant_create_library_when_both_binlib_present.stdout [new file with mode: 0644]
tests/snapshots/init/confused_by_multiple_lib_files.in/lib.rs [new file with mode: 0644]
tests/snapshots/init/confused_by_multiple_lib_files.in/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/confused_by_multiple_lib_files.out/lib.rs [new file with mode: 0644]
tests/snapshots/init/confused_by_multiple_lib_files.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/confused_by_multiple_lib_files.stderr [new file with mode: 0644]
tests/snapshots/init/confused_by_multiple_lib_files.stdout [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_both_binlib_present.in/case.rs [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_both_binlib_present.in/lib.rs [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_both_binlib_present.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_both_binlib_present.out/case.rs [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_both_binlib_present.out/lib.rs [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_both_binlib_present.stderr [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_both_binlib_present.stdout [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_instructed_and_has_lib_file.in/case.rs [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_instructed_and_has_lib_file.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_instructed_and_has_lib_file.out/case.rs [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_instructed_and_has_lib_file.stderr [new file with mode: 0644]
tests/snapshots/init/creates_binary_when_instructed_and_has_lib_file.stdout [new file with mode: 0644]
tests/snapshots/init/creates_library_when_instructed_and_has_bin_file.in/case.rs [new file with mode: 0644]
tests/snapshots/init/creates_library_when_instructed_and_has_bin_file.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/creates_library_when_instructed_and_has_bin_file.out/case.rs [new file with mode: 0644]
tests/snapshots/init/creates_library_when_instructed_and_has_bin_file.stderr [new file with mode: 0644]
tests/snapshots/init/creates_library_when_instructed_and_has_bin_file.stdout [new file with mode: 0644]
tests/snapshots/init/empty-dir/.gitkeep [new file with mode: 0644]
tests/snapshots/init/explicit_bin_with_git.in [new symlink]
tests/snapshots/init/explicit_bin_with_git.out/.gitignore [new file with mode: 0644]
tests/snapshots/init/explicit_bin_with_git.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/explicit_bin_with_git.out/src/main.rs [new file with mode: 0644]
tests/snapshots/init/explicit_bin_with_git.stderr [new file with mode: 0644]
tests/snapshots/init/explicit_bin_with_git.stdout [new file with mode: 0644]
tests/snapshots/init/formats_source.in/rustfmt.toml [new file with mode: 0644]
tests/snapshots/init/formats_source.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/formats_source.out/rustfmt.toml [new file with mode: 0644]
tests/snapshots/init/formats_source.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/formats_source.stderr [new file with mode: 0644]
tests/snapshots/init/formats_source.stdout [new file with mode: 0644]
tests/snapshots/init/fossil_autodetect.in/.fossil/.gitkeep [new file with mode: 0644]
tests/snapshots/init/fossil_autodetect.out/.fossil-settings/clean-glob [new file with mode: 0644]
tests/snapshots/init/fossil_autodetect.out/.fossil-settings/ignore-glob [new file with mode: 0644]
tests/snapshots/init/fossil_autodetect.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/fossil_autodetect.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/fossil_autodetect.stderr [new file with mode: 0644]
tests/snapshots/init/fossil_autodetect.stdout [new file with mode: 0644]
tests/snapshots/init/git_autodetect.out/.gitignore [new file with mode: 0644]
tests/snapshots/init/git_autodetect.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/git_autodetect.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/git_autodetect.stderr [new file with mode: 0644]
tests/snapshots/init/git_autodetect.stdout [new file with mode: 0644]
tests/snapshots/init/git_ignore_exists_no_conflicting_entries.in/.gitignore [new file with mode: 0644]
tests/snapshots/init/git_ignore_exists_no_conflicting_entries.out/.gitignore [new file with mode: 0644]
tests/snapshots/init/git_ignore_exists_no_conflicting_entries.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/git_ignore_exists_no_conflicting_entries.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/git_ignore_exists_no_conflicting_entries.stderr [new file with mode: 0644]
tests/snapshots/init/git_ignore_exists_no_conflicting_entries.stdout [new file with mode: 0644]
tests/snapshots/init/ignores_failure_to_format_source.in/rustfmt.toml [new file with mode: 0644]
tests/snapshots/init/ignores_failure_to_format_source.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/ignores_failure_to_format_source.out/rustfmt.toml [new file with mode: 0644]
tests/snapshots/init/ignores_failure_to_format_source.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/ignores_failure_to_format_source.stderr [new file with mode: 0644]
tests/snapshots/init/ignores_failure_to_format_source.stdout [new file with mode: 0644]
tests/snapshots/init/implicit_bin_with_git.stderr [new file with mode: 0644]
tests/snapshots/init/implicit_bin_with_git.stdout [new file with mode: 0644]
tests/snapshots/init/inferred_bin_with_git.in/main.rs [new file with mode: 0644]
tests/snapshots/init/inferred_bin_with_git.out/.gitignore [new file with mode: 0644]
tests/snapshots/init/inferred_bin_with_git.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/inferred_bin_with_git.out/main.rs [new file with mode: 0644]
tests/snapshots/init/inferred_bin_with_git.stderr [new file with mode: 0644]
tests/snapshots/init/inferred_bin_with_git.stdout [new file with mode: 0644]
tests/snapshots/init/inferred_lib_with_git.in/lib.rs [new file with mode: 0644]
tests/snapshots/init/inferred_lib_with_git.out/.gitignore [new file with mode: 0644]
tests/snapshots/init/inferred_lib_with_git.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/inferred_lib_with_git.out/lib.rs [new file with mode: 0644]
tests/snapshots/init/inferred_lib_with_git.stderr [new file with mode: 0644]
tests/snapshots/init/inferred_lib_with_git.stdout [new file with mode: 0644]
tests/snapshots/init/invalid_dir_name.stderr [new file with mode: 0644]
tests/snapshots/init/invalid_dir_name.stdout [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_nosrc.in/lib.rs [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_nosrc.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_nosrc.out/lib.rs [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_nosrc.stderr [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_nosrc.stdout [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_src.in/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_src.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_src.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_src.stderr [new file with mode: 0644]
tests/snapshots/init/lib_already_exists_src.stdout [new file with mode: 0644]
tests/snapshots/init/mercurial_autodetect.in/.hg/.gitkeep [new file with mode: 0644]
tests/snapshots/init/mercurial_autodetect.out/.hgignore [new file with mode: 0644]
tests/snapshots/init/mercurial_autodetect.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/mercurial_autodetect.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/mercurial_autodetect.stderr [new file with mode: 0644]
tests/snapshots/init/mercurial_autodetect.stdout [new file with mode: 0644]
tests/snapshots/init/multibin_project_name_clash.in/case.rs [new file with mode: 0644]
tests/snapshots/init/multibin_project_name_clash.in/main.rs [new file with mode: 0644]
tests/snapshots/init/multibin_project_name_clash.out/case.rs [new file with mode: 0644]
tests/snapshots/init/multibin_project_name_clash.out/main.rs [new file with mode: 0644]
tests/snapshots/init/multibin_project_name_clash.stderr [new file with mode: 0644]
tests/snapshots/init/multibin_project_name_clash.stdout [new file with mode: 0644]
tests/snapshots/init/no_filename.stderr [new file with mode: 0644]
tests/snapshots/init/no_filename.stdout [new file with mode: 0644]
tests/snapshots/init/pijul_autodetect.in/.pijul/.gitkeep [new file with mode: 0644]
tests/snapshots/init/pijul_autodetect.out/.ignore [new file with mode: 0644]
tests/snapshots/init/pijul_autodetect.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/pijul_autodetect.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/pijul_autodetect.stderr [new file with mode: 0644]
tests/snapshots/init/pijul_autodetect.stdout [new file with mode: 0644]
tests/snapshots/init/reserved_name.stderr [new file with mode: 0644]
tests/snapshots/init/reserved_name.stdout [new file with mode: 0644]
tests/snapshots/init/simple_bin.in [new symlink]
tests/snapshots/init/simple_bin.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/simple_bin.out/src/main.rs [new file with mode: 0644]
tests/snapshots/init/simple_bin.stderr [new file with mode: 0644]
tests/snapshots/init/simple_bin.stdout [new file with mode: 0644]
tests/snapshots/init/simple_git.in [new symlink]
tests/snapshots/init/simple_git.out/.gitignore [new file with mode: 0644]
tests/snapshots/init/simple_git.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/simple_git.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/simple_git.stderr [new file with mode: 0644]
tests/snapshots/init/simple_git.stdout [new file with mode: 0644]
tests/snapshots/init/simple_git_ignore_exists.in/.gitignore [new file with mode: 0644]
tests/snapshots/init/simple_git_ignore_exists.out/.gitignore [new file with mode: 0644]
tests/snapshots/init/simple_git_ignore_exists.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/simple_git_ignore_exists.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/simple_git_ignore_exists.stderr [new file with mode: 0644]
tests/snapshots/init/simple_git_ignore_exists.stdout [new file with mode: 0644]
tests/snapshots/init/simple_hg.in [new symlink]
tests/snapshots/init/simple_hg.out/.hgignore [new file with mode: 0644]
tests/snapshots/init/simple_hg.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/simple_hg.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/simple_hg.stderr [new file with mode: 0644]
tests/snapshots/init/simple_hg.stdout [new file with mode: 0644]
tests/snapshots/init/simple_hg_ignore_exists.in/.hg/.gitkeep [new file with mode: 0644]
tests/snapshots/init/simple_hg_ignore_exists.in/.hgignore [new file with mode: 0644]
tests/snapshots/init/simple_hg_ignore_exists.out/.hgignore [new file with mode: 0644]
tests/snapshots/init/simple_hg_ignore_exists.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/simple_hg_ignore_exists.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/simple_hg_ignore_exists.stderr [new file with mode: 0644]
tests/snapshots/init/simple_hg_ignore_exists.stdout [new file with mode: 0644]
tests/snapshots/init/simple_lib.in [new symlink]
tests/snapshots/init/simple_lib.out/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/simple_lib.out/src/lib.rs [new file with mode: 0644]
tests/snapshots/init/simple_lib.stderr [new file with mode: 0644]
tests/snapshots/init/simple_lib.stdout [new file with mode: 0644]
tests/snapshots/init/unknown_flags.stderr [new file with mode: 0644]
tests/snapshots/init/unknown_flags.stdout [new file with mode: 0644]
tests/snapshots/init/with_argument.in/foo/.gitkeep [new file with mode: 0644]
tests/snapshots/init/with_argument.out/foo/Cargo.toml [new file with mode: 0644]
tests/snapshots/init/with_argument.out/foo/src/main.rs [new file with mode: 0644]
tests/snapshots/init/with_argument.stderr [new file with mode: 0644]
tests/snapshots/init/with_argument.stdout [new file with mode: 0644]
tests/testsuite/init.rs