From cca30b882a3cff029c2009e5ec7ad3fb096ec354 Mon Sep 17 00:00:00 2001 From: Vincent Esche Date: Tue, 22 Oct 2024 15:42:22 +0200 Subject: [PATCH] Include command args in test snapshots --- ...encies__bin__fail__package_lib_target.snap | 5 ++++ ...cies__bin__fail__package_multi_target.snap | 5 ++++ ...fail__virtual_workspace_multi_package.snap | 5 ++++ ...l_workspace_single_package_lib_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...s__bin__fail__workspace_multi_package.snap | 5 ++++ ...__workspace_single_package_lib_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...encies__bin__pass__package_bin_target.snap | 5 ++++ ...cies__bin__pass__package_multi_target.snap | 5 ++++ ...l_workspace_single_package_bin_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...__workspace_single_package_bin_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...ndencies__cfg_test__with_tests__smoke.snap | 4 ++++ ...ncies__cfg_test__without_tests__smoke.snap | 3 +++ .../dependencies__colors__ansi__smoke.snap | 3 +++ .../dependencies__colors__plain__smoke.snap | 3 +++ ...ependencies__colors__truecolor__smoke.snap | 3 +++ ...__default__fail__package_multi_target.snap | 3 +++ ...workspace_single_package_multi_target.snap | 3 +++ ...workspace_single_package_multi_target.snap | 3 +++ ...es__default__pass__package_bin_target.snap | 3 +++ ...es__default__pass__package_lib_target.snap | 3 +++ ...l_workspace_single_package_bin_target.snap | 3 +++ ...l_workspace_single_package_lib_target.snap | 3 +++ ...__workspace_single_package_bin_target.snap | 3 +++ ...__workspace_single_package_lib_target.snap | 3 +++ .../dependencies__fields__enum_fields.snap | 3 +++ .../dependencies__fields__struct_fields.snap | 3 +++ .../dependencies__fields__tuple_fields.snap | 3 +++ .../dependencies__fields__union_fields.snap | 3 +++ ...endencies__focus_on__glob_path__smoke.snap | 5 ++++ ...endencies__focus_on__self_path__smoke.snap | 5 ++++ ...dencies__focus_on__simple_path__smoke.snap | 5 ++++ ...pendencies__focus_on__use_tree__smoke.snap | 5 ++++ ...ependencies__functions__function_body.snap | 3 +++ ...endencies__functions__function_inputs.snap | 3 +++ ...ndencies__functions__function_outputs.snap | 3 +++ ...__github__issue_102__github_issue_102.snap | 7 ++++++ ...__github__issue_172__github_issue_172.snap | 7 ++++++ ...es__github__issue_79__github_issue_79.snap | 7 ++++++ ...hub__issue_80__tests__github_issue_80.snap | 7 ++++++ ...ue_80__without_tests__github_issue_80.snap | 6 +++++ .../snapshots/dependencies__help__smoke.snap | 4 ++++ ...encies__lib__fail__package_bin_target.snap | 4 ++++ ...l_workspace_single_package_bin_target.snap | 4 ++++ ...__workspace_single_package_bin_target.snap | 4 ++++ ...encies__lib__pass__package_lib_target.snap | 4 ++++ ...cies__lib__pass__package_multi_target.snap | 4 ++++ ...l_workspace_single_package_lib_target.snap | 4 ++++ ...workspace_single_package_multi_target.snap | 4 ++++ ...__workspace_single_package_lib_target.snap | 4 ++++ ...workspace_single_package_multi_target.snap | 4 ++++ ...pendencies__max_depth__depth_0__smoke.snap | 5 ++++ ...pendencies__max_depth__depth_1__smoke.snap | 5 ++++ ...pendencies__max_depth__depth_2__smoke.snap | 5 ++++ ...es__package__fail__package_bin_target.snap | 5 ++++ ...es__package__fail__package_lib_target.snap | 5 ++++ ...__package__fail__package_multi_target.snap | 5 ++++ ...fail__virtual_workspace_multi_package.snap | 5 ++++ ...l_workspace_single_package_bin_target.snap | 5 ++++ ...l_workspace_single_package_lib_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...ackage__fail__workspace_multi_package.snap | 5 ++++ ...__workspace_single_package_bin_target.snap | 5 ++++ ...__workspace_single_package_lib_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...es__package__pass__package_bin_target.snap | 5 ++++ ...es__package__pass__package_lib_target.snap | 5 ++++ ...l_workspace_single_package_bin_target.snap | 5 ++++ ...l_workspace_single_package_lib_target.snap | 5 ++++ ...__workspace_single_package_bin_target.snap | 5 ++++ ...__workspace_single_package_lib_target.snap | 5 ++++ ...package_bin__fail__package_bin_target.snap | 7 ++++++ ...package_bin__fail__package_lib_target.snap | 7 ++++++ ...ckage_bin__fail__package_multi_target.snap | 7 ++++++ ...fail__virtual_workspace_multi_package.snap | 7 ++++++ ...l_workspace_single_package_bin_target.snap | 7 ++++++ ...l_workspace_single_package_lib_target.snap | 7 ++++++ ...workspace_single_package_multi_target.snap | 7 ++++++ ...ge_bin__fail__workspace_multi_package.snap | 7 ++++++ ...__workspace_single_package_bin_target.snap | 7 ++++++ ...__workspace_single_package_lib_target.snap | 7 ++++++ ...workspace_single_package_multi_target.snap | 7 ++++++ ...package_bin__pass__package_bin_target.snap | 7 ++++++ ...ckage_bin__pass__package_multi_target.snap | 7 ++++++ ...l_workspace_single_package_bin_target.snap | 7 ++++++ ...workspace_single_package_multi_target.snap | 7 ++++++ ...__workspace_single_package_bin_target.snap | 7 ++++++ ...workspace_single_package_multi_target.snap | 7 ++++++ ...package_lib__fail__package_bin_target.snap | 6 +++++ ...l_workspace_single_package_bin_target.snap | 6 +++++ ...__workspace_single_package_bin_target.snap | 6 +++++ ...package_lib__pass__package_lib_target.snap | 6 +++++ ...ckage_lib__pass__package_multi_target.snap | 6 +++++ ...l_workspace_single_package_lib_target.snap | 6 +++++ ...workspace_single_package_multi_target.snap | 6 +++++ ...__workspace_single_package_lib_target.snap | 6 +++++ ...workspace_single_package_multi_target.snap | 6 +++++ ...dencies__selection__no_externs__smoke.snap | 4 ++++ ...ependencies__selection__no_fns__smoke.snap | 4 ++++ ...dencies__selection__no_modules__smoke.snap | 4 ++++ ...ndencies__selection__no_traits__smoke.snap | 4 ++++ ...endencies__selection__no_types__smoke.snap | 4 ++++ .../dependencies__selection__uses__smoke.snap | 4 ++++ tests/snapshots/general__help__smoke.snap | 3 +++ .../orphans__colors__ansi__orphans.snap | 3 +++ .../orphans__colors__plain__orphans.snap | 3 +++ .../orphans__colors__truecolor__orphans.snap | 3 +++ tests/snapshots/orphans__help__smoke.snap | 4 ++++ .../orphans__no_orphans__no_orphans.snap | 3 +++ .../snapshots/orphans__orphans__orphans.snap | 3 +++ ...ucture__bin__fail__package_lib_target.snap | 5 ++++ ...ture__bin__fail__package_multi_target.snap | 5 ++++ ...fail__virtual_workspace_multi_package.snap | 5 ++++ ...l_workspace_single_package_lib_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...e__bin__fail__workspace_multi_package.snap | 5 ++++ ...__workspace_single_package_lib_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...ucture__bin__pass__package_bin_target.snap | 5 ++++ ...ture__bin__pass__package_multi_target.snap | 5 ++++ ...l_workspace_single_package_bin_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...__workspace_single_package_bin_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ .../snapshots/structure__cfg_test__smoke.snap | 4 ++++ ...tructure__cfg_test__with_tests__smoke.snap | 4 ++++ ...cture__cfg_test__without_tests__smoke.snap | 3 +++ .../structure__colors__plain__smoke.snap | 3 +++ ...__default__fail__package_multi_target.snap | 3 +++ ...workspace_single_package_multi_target.snap | 3 +++ ...workspace_single_package_multi_target.snap | 3 +++ ...re__default__pass__package_bin_target.snap | 3 +++ ...re__default__pass__package_lib_target.snap | 3 +++ ...l_workspace_single_package_bin_target.snap | 3 +++ ...l_workspace_single_package_lib_target.snap | 3 +++ ...__workspace_single_package_bin_target.snap | 3 +++ ...__workspace_single_package_lib_target.snap | 3 +++ ...structure__focus_on__glob_path__smoke.snap | 5 ++++ ...structure__focus_on__self_path__smoke.snap | 5 ++++ ...ructure__focus_on__simple_path__smoke.snap | 5 ++++ .../structure__focus_on__use_tree__smoke.snap | 5 ++++ ...__github__issue_222__github_issue_222.snap | 6 +++++ ...hub__issue_80__tests__github_issue_80.snap | 6 +++++ ...ue_80__without_tests__github_issue_80.snap | 5 ++++ tests/snapshots/structure__help__smoke.snap | 4 ++++ ...ucture__lib__fail__package_bin_target.snap | 4 ++++ ...l_workspace_single_package_bin_target.snap | 4 ++++ ...__workspace_single_package_bin_target.snap | 4 ++++ ...ucture__lib__pass__package_lib_target.snap | 4 ++++ ...ture__lib__pass__package_multi_target.snap | 4 ++++ ...l_workspace_single_package_lib_target.snap | 4 ++++ ...workspace_single_package_multi_target.snap | 4 ++++ ...__workspace_single_package_lib_target.snap | 4 ++++ ...workspace_single_package_multi_target.snap | 4 ++++ .../structure__max_depth__depth_0__smoke.snap | 8 +++++++ .../structure__max_depth__depth_1__smoke.snap | 8 +++++++ .../structure__max_depth__depth_2__smoke.snap | 8 +++++++ ...re__package__fail__package_bin_target.snap | 5 ++++ ...re__package__fail__package_lib_target.snap | 5 ++++ ...__package__fail__package_multi_target.snap | 5 ++++ ...fail__virtual_workspace_multi_package.snap | 5 ++++ ...l_workspace_single_package_bin_target.snap | 5 ++++ ...l_workspace_single_package_lib_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...ackage__fail__workspace_multi_package.snap | 5 ++++ ...__workspace_single_package_bin_target.snap | 5 ++++ ...__workspace_single_package_lib_target.snap | 5 ++++ ...workspace_single_package_multi_target.snap | 5 ++++ ...re__package__pass__package_bin_target.snap | 5 ++++ ...re__package__pass__package_lib_target.snap | 5 ++++ ...l_workspace_single_package_bin_target.snap | 5 ++++ ...l_workspace_single_package_lib_target.snap | 5 ++++ ...__workspace_single_package_bin_target.snap | 5 ++++ ...__workspace_single_package_lib_target.snap | 5 ++++ ...package_bin__fail__package_bin_target.snap | 7 ++++++ ...package_bin__fail__package_lib_target.snap | 7 ++++++ ...ckage_bin__fail__package_multi_target.snap | 7 ++++++ ...fail__virtual_workspace_multi_package.snap | 7 ++++++ ...l_workspace_single_package_bin_target.snap | 7 ++++++ ...l_workspace_single_package_lib_target.snap | 7 ++++++ ...workspace_single_package_multi_target.snap | 7 ++++++ ...ge_bin__fail__workspace_multi_package.snap | 7 ++++++ ...__workspace_single_package_bin_target.snap | 7 ++++++ ...__workspace_single_package_lib_target.snap | 7 ++++++ ...workspace_single_package_multi_target.snap | 7 ++++++ ...package_bin__pass__package_bin_target.snap | 7 ++++++ ...ckage_bin__pass__package_multi_target.snap | 7 ++++++ ...l_workspace_single_package_bin_target.snap | 7 ++++++ ...workspace_single_package_multi_target.snap | 7 ++++++ ...__workspace_single_package_bin_target.snap | 7 ++++++ ...workspace_single_package_multi_target.snap | 7 ++++++ ...package_lib__fail__package_bin_target.snap | 6 +++++ ...l_workspace_single_package_bin_target.snap | 6 +++++ ...__workspace_single_package_bin_target.snap | 6 +++++ ...package_lib__pass__package_lib_target.snap | 6 +++++ ...ckage_lib__pass__package_multi_target.snap | 6 +++++ ...l_workspace_single_package_lib_target.snap | 6 +++++ ...workspace_single_package_multi_target.snap | 6 +++++ ...__workspace_single_package_lib_target.snap | 6 +++++ ...workspace_single_package_multi_target.snap | 6 +++++ .../structure__selection__no_fns__smoke.snap | 4 ++++ ...tructure__selection__no_traits__smoke.snap | 4 ++++ ...structure__selection__no_types__smoke.snap | 4 ++++ .../structure__sort_by__kind__smoke.snap | 5 ++++ .../structure__sort_by__name__smoke.snap | 5 ++++ ...structure__sort_by__visibility__smoke.snap | 5 ++++ .../structure__sort_reversed__smoke.snap | 4 ++++ tests/util.rs | 23 +++++++++++-------- 211 files changed, 1061 insertions(+), 10 deletions(-) diff --git a/tests/snapshots/dependencies__bin__fail__package_lib_target.snap b/tests/snapshots/dependencies__bin__fail__package_lib_target.snap index 3453d441..781fbbcb 100644 --- a/tests/snapshots/dependencies__bin__fail__package_lib_target.snap +++ b/tests/snapshots/dependencies__bin__fail__package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/dependencies__bin__fail__package_multi_target.snap b/tests/snapshots/dependencies__bin__fail__package_multi_target.snap index e873a6f4..e6434ae6 100644 --- a/tests/snapshots/dependencies__bin__fail__package_multi_target.snap +++ b/tests/snapshots/dependencies__bin__fail__package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/dependencies__bin__fail__virtual_workspace_multi_package.snap b/tests/snapshots/dependencies__bin__fail__virtual_workspace_multi_package.snap index dc1601b5..c5a589b3 100644 --- a/tests/snapshots/dependencies__bin__fail__virtual_workspace_multi_package.snap +++ b/tests/snapshots/dependencies__bin__fail__virtual_workspace_multi_package.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +foobar + STDERR: Error: Multiple packages present in workspace, please explicitly select one via --package flag. diff --git a/tests/snapshots/dependencies__bin__fail__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__bin__fail__virtual_workspace_single_package_lib_target.snap index 3453d441..781fbbcb 100644 --- a/tests/snapshots/dependencies__bin__fail__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__bin__fail__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/dependencies__bin__fail__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__bin__fail__virtual_workspace_single_package_multi_target.snap index e873a6f4..e6434ae6 100644 --- a/tests/snapshots/dependencies__bin__fail__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__bin__fail__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/dependencies__bin__fail__workspace_multi_package.snap b/tests/snapshots/dependencies__bin__fail__workspace_multi_package.snap index 26cb6dd3..a1f9fd1d 100644 --- a/tests/snapshots/dependencies__bin__fail__workspace_multi_package.snap +++ b/tests/snapshots/dependencies__bin__fail__workspace_multi_package.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +foobar + STDERR: Error: Multiple packages present in workspace, please explicitly select one via --package flag. diff --git a/tests/snapshots/dependencies__bin__fail__workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__bin__fail__workspace_single_package_lib_target.snap index 3453d441..781fbbcb 100644 --- a/tests/snapshots/dependencies__bin__fail__workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__bin__fail__workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/dependencies__bin__fail__workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__bin__fail__workspace_single_package_multi_target.snap index e873a6f4..e6434ae6 100644 --- a/tests/snapshots/dependencies__bin__fail__workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__bin__fail__workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/dependencies__bin__pass__package_bin_target.snap b/tests/snapshots/dependencies__bin__pass__package_bin_target.snap index 8a2ba9fd..43d34774 100644 --- a/tests/snapshots/dependencies__bin__pass__package_bin_target.snap +++ b/tests/snapshots/dependencies__bin__pass__package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__bin__pass__package_multi_target.snap b/tests/snapshots/dependencies__bin__pass__package_multi_target.snap index a2847c27..73accd25 100644 --- a/tests/snapshots/dependencies__bin__pass__package_multi_target.snap +++ b/tests/snapshots/dependencies__bin__pass__package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__bin__pass__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__bin__pass__virtual_workspace_single_package_bin_target.snap index 8a2ba9fd..43d34774 100644 --- a/tests/snapshots/dependencies__bin__pass__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__bin__pass__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__bin__pass__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__bin__pass__virtual_workspace_single_package_multi_target.snap index a2847c27..73accd25 100644 --- a/tests/snapshots/dependencies__bin__pass__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__bin__pass__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__bin__pass__workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__bin__pass__workspace_single_package_bin_target.snap index 8a2ba9fd..43d34774 100644 --- a/tests/snapshots/dependencies__bin__pass__workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__bin__pass__workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__bin__pass__workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__bin__pass__workspace_single_package_multi_target.snap index a2847c27..73accd25 100644 --- a/tests/snapshots/dependencies__bin__pass__workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__bin__pass__workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__cfg_test__with_tests__smoke.snap b/tests/snapshots/dependencies__cfg_test__with_tests__smoke.snap index 9786b6db..4212a022 100644 --- a/tests/snapshots/dependencies__cfg_test__with_tests__smoke.snap +++ b/tests/snapshots/dependencies__cfg_test__with_tests__smoke.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--cfg-test + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__cfg_test__without_tests__smoke.snap b/tests/snapshots/dependencies__cfg_test__without_tests__smoke.snap index 45bf8c75..09001ced 100644 --- a/tests/snapshots/dependencies__cfg_test__without_tests__smoke.snap +++ b/tests/snapshots/dependencies__cfg_test__without_tests__smoke.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__colors__ansi__smoke.snap b/tests/snapshots/dependencies__colors__ansi__smoke.snap index 45bf8c75..09001ced 100644 --- a/tests/snapshots/dependencies__colors__ansi__smoke.snap +++ b/tests/snapshots/dependencies__colors__ansi__smoke.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__colors__plain__smoke.snap b/tests/snapshots/dependencies__colors__plain__smoke.snap index 45bf8c75..09001ced 100644 --- a/tests/snapshots/dependencies__colors__plain__smoke.snap +++ b/tests/snapshots/dependencies__colors__plain__smoke.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__colors__truecolor__smoke.snap b/tests/snapshots/dependencies__colors__truecolor__smoke.snap index 45bf8c75..09001ced 100644 --- a/tests/snapshots/dependencies__colors__truecolor__smoke.snap +++ b/tests/snapshots/dependencies__colors__truecolor__smoke.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__default__fail__package_multi_target.snap b/tests/snapshots/dependencies__default__fail__package_multi_target.snap index da0ef490..1a68f599 100644 --- a/tests/snapshots/dependencies__default__fail__package_multi_target.snap +++ b/tests/snapshots/dependencies__default__fail__package_multi_target.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: Error: Multiple targets present in package, please explicitly select one via --lib or --bin flag. diff --git a/tests/snapshots/dependencies__default__fail__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__default__fail__virtual_workspace_single_package_multi_target.snap index da0ef490..1a68f599 100644 --- a/tests/snapshots/dependencies__default__fail__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__default__fail__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: Error: Multiple targets present in package, please explicitly select one via --lib or --bin flag. diff --git a/tests/snapshots/dependencies__default__fail__workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__default__fail__workspace_single_package_multi_target.snap index da0ef490..1a68f599 100644 --- a/tests/snapshots/dependencies__default__fail__workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__default__fail__workspace_single_package_multi_target.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: Error: Multiple targets present in package, please explicitly select one via --lib or --bin flag. diff --git a/tests/snapshots/dependencies__default__pass__package_bin_target.snap b/tests/snapshots/dependencies__default__pass__package_bin_target.snap index 8a2ba9fd..5a0f703c 100644 --- a/tests/snapshots/dependencies__default__pass__package_bin_target.snap +++ b/tests/snapshots/dependencies__default__pass__package_bin_target.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__default__pass__package_lib_target.snap b/tests/snapshots/dependencies__default__pass__package_lib_target.snap index d249d5d8..b9d363d0 100644 --- a/tests/snapshots/dependencies__default__pass__package_lib_target.snap +++ b/tests/snapshots/dependencies__default__pass__package_lib_target.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__default__pass__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__default__pass__virtual_workspace_single_package_bin_target.snap index 8a2ba9fd..5a0f703c 100644 --- a/tests/snapshots/dependencies__default__pass__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__default__pass__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__default__pass__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__default__pass__virtual_workspace_single_package_lib_target.snap index d249d5d8..b9d363d0 100644 --- a/tests/snapshots/dependencies__default__pass__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__default__pass__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__default__pass__workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__default__pass__workspace_single_package_bin_target.snap index 8a2ba9fd..5a0f703c 100644 --- a/tests/snapshots/dependencies__default__pass__workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__default__pass__workspace_single_package_bin_target.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__default__pass__workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__default__pass__workspace_single_package_lib_target.snap index d249d5d8..b9d363d0 100644 --- a/tests/snapshots/dependencies__default__pass__workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__default__pass__workspace_single_package_lib_target.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__fields__enum_fields.snap b/tests/snapshots/dependencies__fields__enum_fields.snap index d832a504..349d8e5b 100644 --- a/tests/snapshots/dependencies__fields__enum_fields.snap +++ b/tests/snapshots/dependencies__fields__enum_fields.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__fields__struct_fields.snap b/tests/snapshots/dependencies__fields__struct_fields.snap index 97a9af03..66e6ab8d 100644 --- a/tests/snapshots/dependencies__fields__struct_fields.snap +++ b/tests/snapshots/dependencies__fields__struct_fields.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__fields__tuple_fields.snap b/tests/snapshots/dependencies__fields__tuple_fields.snap index c3ca1b76..a4ae7b2f 100644 --- a/tests/snapshots/dependencies__fields__tuple_fields.snap +++ b/tests/snapshots/dependencies__fields__tuple_fields.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__fields__union_fields.snap b/tests/snapshots/dependencies__fields__union_fields.snap index ec22c9b4..71e17812 100644 --- a/tests/snapshots/dependencies__fields__union_fields.snap +++ b/tests/snapshots/dependencies__fields__union_fields.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__focus_on__glob_path__smoke.snap b/tests/snapshots/dependencies__focus_on__glob_path__smoke.snap index 56eeea01..49785c11 100644 --- a/tests/snapshots/dependencies__focus_on__glob_path__smoke.snap +++ b/tests/snapshots/dependencies__focus_on__glob_path__smoke.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--focus-on +smoke::visibility::* + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__focus_on__self_path__smoke.snap b/tests/snapshots/dependencies__focus_on__self_path__smoke.snap index 56eeea01..a8dde540 100644 --- a/tests/snapshots/dependencies__focus_on__self_path__smoke.snap +++ b/tests/snapshots/dependencies__focus_on__self_path__smoke.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--focus-on +smoke::visibility::dummy::{self} + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__focus_on__simple_path__smoke.snap b/tests/snapshots/dependencies__focus_on__simple_path__smoke.snap index 56eeea01..6310610f 100644 --- a/tests/snapshots/dependencies__focus_on__simple_path__smoke.snap +++ b/tests/snapshots/dependencies__focus_on__simple_path__smoke.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--focus-on +smoke::visibility::dummy + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__focus_on__use_tree__smoke.snap b/tests/snapshots/dependencies__focus_on__use_tree__smoke.snap index 56eeea01..7bd52de5 100644 --- a/tests/snapshots/dependencies__focus_on__use_tree__smoke.snap +++ b/tests/snapshots/dependencies__focus_on__use_tree__smoke.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--focus-on +smoke::visibility::{dummy, hierarchy} + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__functions__function_body.snap b/tests/snapshots/dependencies__functions__function_body.snap index f329622d..4e2310d5 100644 --- a/tests/snapshots/dependencies__functions__function_body.snap +++ b/tests/snapshots/dependencies__functions__function_body.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__functions__function_inputs.snap b/tests/snapshots/dependencies__functions__function_inputs.snap index 10b0dd2a..51037446 100644 --- a/tests/snapshots/dependencies__functions__function_inputs.snap +++ b/tests/snapshots/dependencies__functions__function_inputs.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__functions__function_outputs.snap b/tests/snapshots/dependencies__functions__function_outputs.snap index 5e57eadc..2325ac2b 100644 --- a/tests/snapshots/dependencies__functions__function_outputs.snap +++ b/tests/snapshots/dependencies__functions__function_outputs.snap @@ -2,6 +2,9 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__github__issue_102__github_issue_102.snap b/tests/snapshots/dependencies__github__issue_102__github_issue_102.snap index 518b45c9..dcd99fbc 100644 --- a/tests/snapshots/dependencies__github__issue_102__github_issue_102.snap +++ b/tests/snapshots/dependencies__github__issue_102__github_issue_102.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-externs +--no-fns +--no-traits +--no-types + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__github__issue_172__github_issue_172.snap b/tests/snapshots/dependencies__github__issue_172__github_issue_172.snap index 7c874cc2..692cb07f 100644 --- a/tests/snapshots/dependencies__github__issue_172__github_issue_172.snap +++ b/tests/snapshots/dependencies__github__issue_172__github_issue_172.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-externs +--no-fns +--layout +dot + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__github__issue_79__github_issue_79.snap b/tests/snapshots/dependencies__github__issue_79__github_issue_79.snap index dc246fa0..c07524e0 100644 --- a/tests/snapshots/dependencies__github__issue_79__github_issue_79.snap +++ b/tests/snapshots/dependencies__github__issue_79__github_issue_79.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-externs +--no-fns +--no-traits +--no-types + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__github__issue_80__tests__github_issue_80.snap b/tests/snapshots/dependencies__github__issue_80__tests__github_issue_80.snap index 414f2a14..755841ec 100644 --- a/tests/snapshots/dependencies__github__issue_80__tests__github_issue_80.snap +++ b/tests/snapshots/dependencies__github__issue_80__tests__github_issue_80.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--cfg-test +--no-externs +--no-fns +--no-traits + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__github__issue_80__without_tests__github_issue_80.snap b/tests/snapshots/dependencies__github__issue_80__without_tests__github_issue_80.snap index e5b6abe0..463902e2 100644 --- a/tests/snapshots/dependencies__github__issue_80__without_tests__github_issue_80.snap +++ b/tests/snapshots/dependencies__github__issue_80__without_tests__github_issue_80.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-externs +--no-fns +--no-traits + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__help__smoke.snap b/tests/snapshots/dependencies__help__smoke.snap index d21fa7fd..29a2497b 100644 --- a/tests/snapshots/dependencies__help__smoke.snap +++ b/tests/snapshots/dependencies__help__smoke.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--help + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__lib__fail__package_bin_target.snap b/tests/snapshots/dependencies__lib__fail__package_bin_target.snap index e7b947fb..885d0044 100644 --- a/tests/snapshots/dependencies__lib__fail__package_bin_target.snap +++ b/tests/snapshots/dependencies__lib__fail__package_bin_target.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/dependencies__lib__fail__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__lib__fail__virtual_workspace_single_package_bin_target.snap index e7b947fb..885d0044 100644 --- a/tests/snapshots/dependencies__lib__fail__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__lib__fail__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/dependencies__lib__fail__workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__lib__fail__workspace_single_package_bin_target.snap index e7b947fb..885d0044 100644 --- a/tests/snapshots/dependencies__lib__fail__workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__lib__fail__workspace_single_package_bin_target.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/dependencies__lib__pass__package_lib_target.snap b/tests/snapshots/dependencies__lib__pass__package_lib_target.snap index d249d5d8..781d3ef7 100644 --- a/tests/snapshots/dependencies__lib__pass__package_lib_target.snap +++ b/tests/snapshots/dependencies__lib__pass__package_lib_target.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__lib__pass__package_multi_target.snap b/tests/snapshots/dependencies__lib__pass__package_multi_target.snap index 416fa5c9..68c3ba8c 100644 --- a/tests/snapshots/dependencies__lib__pass__package_multi_target.snap +++ b/tests/snapshots/dependencies__lib__pass__package_multi_target.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__lib__pass__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__lib__pass__virtual_workspace_single_package_lib_target.snap index d249d5d8..781d3ef7 100644 --- a/tests/snapshots/dependencies__lib__pass__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__lib__pass__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__lib__pass__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__lib__pass__virtual_workspace_single_package_multi_target.snap index 416fa5c9..68c3ba8c 100644 --- a/tests/snapshots/dependencies__lib__pass__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__lib__pass__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__lib__pass__workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__lib__pass__workspace_single_package_lib_target.snap index d249d5d8..781d3ef7 100644 --- a/tests/snapshots/dependencies__lib__pass__workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__lib__pass__workspace_single_package_lib_target.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__lib__pass__workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__lib__pass__workspace_single_package_multi_target.snap index 416fa5c9..68c3ba8c 100644 --- a/tests/snapshots/dependencies__lib__pass__workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__lib__pass__workspace_single_package_multi_target.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__max_depth__depth_0__smoke.snap b/tests/snapshots/dependencies__max_depth__depth_0__smoke.snap index 0135907c..1a4e7980 100644 --- a/tests/snapshots/dependencies__max_depth__depth_0__smoke.snap +++ b/tests/snapshots/dependencies__max_depth__depth_0__smoke.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--max-depth +0 + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__max_depth__depth_1__smoke.snap b/tests/snapshots/dependencies__max_depth__depth_1__smoke.snap index 1ef02601..5ab7f863 100644 --- a/tests/snapshots/dependencies__max_depth__depth_1__smoke.snap +++ b/tests/snapshots/dependencies__max_depth__depth_1__smoke.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--max-depth +1 + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__max_depth__depth_2__smoke.snap b/tests/snapshots/dependencies__max_depth__depth_2__smoke.snap index 65c6fb9e..fbc152d2 100644 --- a/tests/snapshots/dependencies__max_depth__depth_2__smoke.snap +++ b/tests/snapshots/dependencies__max_depth__depth_2__smoke.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--max-depth +2 + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package__fail__package_bin_target.snap b/tests/snapshots/dependencies__package__fail__package_bin_target.snap index 4036522e..39ad918d 100644 --- a/tests/snapshots/dependencies__package__fail__package_bin_target.snap +++ b/tests/snapshots/dependencies__package__fail__package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__package_lib_target.snap b/tests/snapshots/dependencies__package__fail__package_lib_target.snap index 130fc85b..32cd17ee 100644 --- a/tests/snapshots/dependencies__package__fail__package_lib_target.snap +++ b/tests/snapshots/dependencies__package__fail__package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__package_multi_target.snap b/tests/snapshots/dependencies__package__fail__package_multi_target.snap index 0ec3407f..2b03fb2f 100644 --- a/tests/snapshots/dependencies__package__fail__package_multi_target.snap +++ b/tests/snapshots/dependencies__package__fail__package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__virtual_workspace_multi_package.snap b/tests/snapshots/dependencies__package__fail__virtual_workspace_multi_package.snap index f44d85ac..e306862f 100644 --- a/tests/snapshots/dependencies__package__fail__virtual_workspace_multi_package.snap +++ b/tests/snapshots/dependencies__package__fail__virtual_workspace_multi_package.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_bin_target.snap index 4036522e..39ad918d 100644 --- a/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_lib_target.snap index 130fc85b..32cd17ee 100644 --- a/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_multi_target.snap index 0ec3407f..2b03fb2f 100644 --- a/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__package__fail__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__workspace_multi_package.snap b/tests/snapshots/dependencies__package__fail__workspace_multi_package.snap index 1b5c20fc..74daf03b 100644 --- a/tests/snapshots/dependencies__package__fail__workspace_multi_package.snap +++ b/tests/snapshots/dependencies__package__fail__workspace_multi_package.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package__fail__workspace_single_package_bin_target.snap index 4036522e..39ad918d 100644 --- a/tests/snapshots/dependencies__package__fail__workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package__fail__workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__package__fail__workspace_single_package_lib_target.snap index 130fc85b..32cd17ee 100644 --- a/tests/snapshots/dependencies__package__fail__workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__package__fail__workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__fail__workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__package__fail__workspace_single_package_multi_target.snap index 0ec3407f..2b03fb2f 100644 --- a/tests/snapshots/dependencies__package__fail__workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__package__fail__workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/dependencies__package__pass__package_bin_target.snap b/tests/snapshots/dependencies__package__pass__package_bin_target.snap index 8a2ba9fd..f5c93887 100644 --- a/tests/snapshots/dependencies__package__pass__package_bin_target.snap +++ b/tests/snapshots/dependencies__package__pass__package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package__pass__package_lib_target.snap b/tests/snapshots/dependencies__package__pass__package_lib_target.snap index d249d5d8..0b57220c 100644 --- a/tests/snapshots/dependencies__package__pass__package_lib_target.snap +++ b/tests/snapshots/dependencies__package__pass__package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_lib_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package__pass__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package__pass__virtual_workspace_single_package_bin_target.snap index 8a2ba9fd..f5c93887 100644 --- a/tests/snapshots/dependencies__package__pass__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package__pass__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package__pass__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__package__pass__virtual_workspace_single_package_lib_target.snap index d249d5d8..0b57220c 100644 --- a/tests/snapshots/dependencies__package__pass__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__package__pass__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_lib_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package__pass__workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package__pass__workspace_single_package_bin_target.snap index 8a2ba9fd..f5c93887 100644 --- a/tests/snapshots/dependencies__package__pass__workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package__pass__workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package__pass__workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__package__pass__workspace_single_package_lib_target.snap index d249d5d8..0b57220c 100644 --- a/tests/snapshots/dependencies__package__pass__workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__package__pass__workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_lib_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_bin__fail__package_bin_target.snap b/tests/snapshots/dependencies__package_bin__fail__package_bin_target.snap index a0d8df72..03457065 100644 --- a/tests/snapshots/dependencies__package_bin__fail__package_bin_target.snap +++ b/tests/snapshots/dependencies__package_bin__fail__package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__package_lib_target.snap b/tests/snapshots/dependencies__package_bin__fail__package_lib_target.snap index a4e62a1f..e3f86f14 100644 --- a/tests/snapshots/dependencies__package_bin__fail__package_lib_target.snap +++ b/tests/snapshots/dependencies__package_bin__fail__package_lib_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__package_multi_target.snap b/tests/snapshots/dependencies__package_bin__fail__package_multi_target.snap index bb29080c..c185c50c 100644 --- a/tests/snapshots/dependencies__package_bin__fail__package_multi_target.snap +++ b/tests/snapshots/dependencies__package_bin__fail__package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_multi_package.snap b/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_multi_package.snap index 853c876a..4b83afde 100644 --- a/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_multi_package.snap +++ b/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_multi_package.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_bin_target.snap index a0d8df72..03457065 100644 --- a/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_lib_target.snap index a4e62a1f..e3f86f14 100644 --- a/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_multi_target.snap index bb29080c..c185c50c 100644 --- a/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__package_bin__fail__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__workspace_multi_package.snap b/tests/snapshots/dependencies__package_bin__fail__workspace_multi_package.snap index ad0dadd0..068d8242 100644 --- a/tests/snapshots/dependencies__package_bin__fail__workspace_multi_package.snap +++ b/tests/snapshots/dependencies__package_bin__fail__workspace_multi_package.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_bin_target.snap index a0d8df72..03457065 100644 --- a/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_lib_target.snap index a4e62a1f..e3f86f14 100644 --- a/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_lib_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_multi_target.snap index bb29080c..c185c50c 100644 --- a/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__package_bin__fail__workspace_single_package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/dependencies__package_bin__pass__package_bin_target.snap b/tests/snapshots/dependencies__package_bin__pass__package_bin_target.snap index 8a2ba9fd..bcd8839e 100644 --- a/tests/snapshots/dependencies__package_bin__pass__package_bin_target.snap +++ b/tests/snapshots/dependencies__package_bin__pass__package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_bin_target +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_bin__pass__package_multi_target.snap b/tests/snapshots/dependencies__package_bin__pass__package_multi_target.snap index a2847c27..6116c4d6 100644 --- a/tests/snapshots/dependencies__package_bin__pass__package_multi_target.snap +++ b/tests/snapshots/dependencies__package_bin__pass__package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_multi_target +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_bin__pass__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package_bin__pass__virtual_workspace_single_package_bin_target.snap index 8a2ba9fd..bcd8839e 100644 --- a/tests/snapshots/dependencies__package_bin__pass__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package_bin__pass__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_bin_target +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_bin__pass__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__package_bin__pass__virtual_workspace_single_package_multi_target.snap index a2847c27..6116c4d6 100644 --- a/tests/snapshots/dependencies__package_bin__pass__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__package_bin__pass__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_multi_target +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_bin__pass__workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package_bin__pass__workspace_single_package_bin_target.snap index 8a2ba9fd..bcd8839e 100644 --- a/tests/snapshots/dependencies__package_bin__pass__workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package_bin__pass__workspace_single_package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_bin_target +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_bin__pass__workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__package_bin__pass__workspace_single_package_multi_target.snap index a2847c27..6116c4d6 100644 --- a/tests/snapshots/dependencies__package_bin__pass__workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__package_bin__pass__workspace_single_package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_multi_target +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_lib__fail__package_bin_target.snap b/tests/snapshots/dependencies__package_lib__fail__package_bin_target.snap index e7b947fb..2fd2f9ab 100644 --- a/tests/snapshots/dependencies__package_lib__fail__package_bin_target.snap +++ b/tests/snapshots/dependencies__package_lib__fail__package_bin_target.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_bin_target +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/dependencies__package_lib__fail__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package_lib__fail__virtual_workspace_single_package_bin_target.snap index e7b947fb..2fd2f9ab 100644 --- a/tests/snapshots/dependencies__package_lib__fail__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package_lib__fail__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_bin_target +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/dependencies__package_lib__fail__workspace_single_package_bin_target.snap b/tests/snapshots/dependencies__package_lib__fail__workspace_single_package_bin_target.snap index e7b947fb..2fd2f9ab 100644 --- a/tests/snapshots/dependencies__package_lib__fail__workspace_single_package_bin_target.snap +++ b/tests/snapshots/dependencies__package_lib__fail__workspace_single_package_bin_target.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_bin_target +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/dependencies__package_lib__pass__package_lib_target.snap b/tests/snapshots/dependencies__package_lib__pass__package_lib_target.snap index d249d5d8..3749d855 100644 --- a/tests/snapshots/dependencies__package_lib__pass__package_lib_target.snap +++ b/tests/snapshots/dependencies__package_lib__pass__package_lib_target.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_lib_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_lib__pass__package_multi_target.snap b/tests/snapshots/dependencies__package_lib__pass__package_multi_target.snap index 416fa5c9..7a321b14 100644 --- a/tests/snapshots/dependencies__package_lib__pass__package_multi_target.snap +++ b/tests/snapshots/dependencies__package_lib__pass__package_multi_target.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_multi_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_lib__pass__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__package_lib__pass__virtual_workspace_single_package_lib_target.snap index d249d5d8..3749d855 100644 --- a/tests/snapshots/dependencies__package_lib__pass__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__package_lib__pass__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_lib_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_lib__pass__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__package_lib__pass__virtual_workspace_single_package_multi_target.snap index 416fa5c9..7a321b14 100644 --- a/tests/snapshots/dependencies__package_lib__pass__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__package_lib__pass__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_multi_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_lib__pass__workspace_single_package_lib_target.snap b/tests/snapshots/dependencies__package_lib__pass__workspace_single_package_lib_target.snap index d249d5d8..3749d855 100644 --- a/tests/snapshots/dependencies__package_lib__pass__workspace_single_package_lib_target.snap +++ b/tests/snapshots/dependencies__package_lib__pass__workspace_single_package_lib_target.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_lib_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__package_lib__pass__workspace_single_package_multi_target.snap b/tests/snapshots/dependencies__package_lib__pass__workspace_single_package_multi_target.snap index 416fa5c9..7a321b14 100644 --- a/tests/snapshots/dependencies__package_lib__pass__workspace_single_package_multi_target.snap +++ b/tests/snapshots/dependencies__package_lib__pass__workspace_single_package_multi_target.snap @@ -2,6 +2,12 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--package +package_multi_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__selection__no_externs__smoke.snap b/tests/snapshots/dependencies__selection__no_externs__smoke.snap index 6c77d3f2..b3d0cb9a 100644 --- a/tests/snapshots/dependencies__selection__no_externs__smoke.snap +++ b/tests/snapshots/dependencies__selection__no_externs__smoke.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-externs + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__selection__no_fns__smoke.snap b/tests/snapshots/dependencies__selection__no_fns__smoke.snap index 2a9501e1..69a563b0 100644 --- a/tests/snapshots/dependencies__selection__no_fns__smoke.snap +++ b/tests/snapshots/dependencies__selection__no_fns__smoke.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-fns + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__selection__no_modules__smoke.snap b/tests/snapshots/dependencies__selection__no_modules__smoke.snap index 500cbd4e..ef75cb5d 100644 --- a/tests/snapshots/dependencies__selection__no_modules__smoke.snap +++ b/tests/snapshots/dependencies__selection__no_modules__smoke.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-modules + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__selection__no_traits__smoke.snap b/tests/snapshots/dependencies__selection__no_traits__smoke.snap index c22af6c5..593cad63 100644 --- a/tests/snapshots/dependencies__selection__no_traits__smoke.snap +++ b/tests/snapshots/dependencies__selection__no_traits__smoke.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-traits + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__selection__no_types__smoke.snap b/tests/snapshots/dependencies__selection__no_types__smoke.snap index dcaf5562..fcb6c4fb 100644 --- a/tests/snapshots/dependencies__selection__no_types__smoke.snap +++ b/tests/snapshots/dependencies__selection__no_types__smoke.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-types + STDERR: STDOUT: diff --git a/tests/snapshots/dependencies__selection__uses__smoke.snap b/tests/snapshots/dependencies__selection__uses__smoke.snap index 4e7b8f9f..c56badad 100644 --- a/tests/snapshots/dependencies__selection__uses__smoke.snap +++ b/tests/snapshots/dependencies__selection__uses__smoke.snap @@ -2,6 +2,10 @@ source: tests/dependencies.rs expression: output --- +CMD: +dependencies +--no-uses + STDERR: STDOUT: diff --git a/tests/snapshots/general__help__smoke.snap b/tests/snapshots/general__help__smoke.snap index f753a1b1..5a682cbf 100644 --- a/tests/snapshots/general__help__smoke.snap +++ b/tests/snapshots/general__help__smoke.snap @@ -2,6 +2,9 @@ source: tests/general.rs expression: output --- +CMD: +--help + STDERR: STDOUT: diff --git a/tests/snapshots/orphans__colors__ansi__orphans.snap b/tests/snapshots/orphans__colors__ansi__orphans.snap index 46be6c31..fbb0b42f 100644 --- a/tests/snapshots/orphans__colors__ansi__orphans.snap +++ b/tests/snapshots/orphans__colors__ansi__orphans.snap @@ -2,6 +2,9 @@ source: tests/orphans.rs expression: output --- +CMD: +orphans + STDERR: Error: Found 2 orphans in crate 'orphans' diff --git a/tests/snapshots/orphans__colors__plain__orphans.snap b/tests/snapshots/orphans__colors__plain__orphans.snap index aab68ee8..fa37aad6 100644 --- a/tests/snapshots/orphans__colors__plain__orphans.snap +++ b/tests/snapshots/orphans__colors__plain__orphans.snap @@ -2,6 +2,9 @@ source: tests/orphans.rs expression: output --- +CMD: +orphans + STDERR: Error: Found 2 orphans in crate 'orphans' diff --git a/tests/snapshots/orphans__colors__truecolor__orphans.snap b/tests/snapshots/orphans__colors__truecolor__orphans.snap index c5670768..9e0d9d99 100644 --- a/tests/snapshots/orphans__colors__truecolor__orphans.snap +++ b/tests/snapshots/orphans__colors__truecolor__orphans.snap @@ -2,6 +2,9 @@ source: tests/orphans.rs expression: output --- +CMD: +orphans + STDERR: Error: Found 2 orphans in crate 'orphans' diff --git a/tests/snapshots/orphans__help__smoke.snap b/tests/snapshots/orphans__help__smoke.snap index 6fe2cd40..d2071af6 100644 --- a/tests/snapshots/orphans__help__smoke.snap +++ b/tests/snapshots/orphans__help__smoke.snap @@ -2,6 +2,10 @@ source: tests/orphans.rs expression: output --- +CMD: +orphans +--help + STDERR: STDOUT: diff --git a/tests/snapshots/orphans__no_orphans__no_orphans.snap b/tests/snapshots/orphans__no_orphans__no_orphans.snap index d99d063d..35bde170 100644 --- a/tests/snapshots/orphans__no_orphans__no_orphans.snap +++ b/tests/snapshots/orphans__no_orphans__no_orphans.snap @@ -2,6 +2,9 @@ source: tests/orphans.rs expression: output --- +CMD: +orphans + STDERR: STDOUT: diff --git a/tests/snapshots/orphans__orphans__orphans.snap b/tests/snapshots/orphans__orphans__orphans.snap index aab68ee8..fa37aad6 100644 --- a/tests/snapshots/orphans__orphans__orphans.snap +++ b/tests/snapshots/orphans__orphans__orphans.snap @@ -2,6 +2,9 @@ source: tests/orphans.rs expression: output --- +CMD: +orphans + STDERR: Error: Found 2 orphans in crate 'orphans' diff --git a/tests/snapshots/structure__bin__fail__package_lib_target.snap b/tests/snapshots/structure__bin__fail__package_lib_target.snap index bf2166bf..d623041f 100644 --- a/tests/snapshots/structure__bin__fail__package_lib_target.snap +++ b/tests/snapshots/structure__bin__fail__package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/structure__bin__fail__package_multi_target.snap b/tests/snapshots/structure__bin__fail__package_multi_target.snap index bee4788a..65246ea0 100644 --- a/tests/snapshots/structure__bin__fail__package_multi_target.snap +++ b/tests/snapshots/structure__bin__fail__package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/structure__bin__fail__virtual_workspace_multi_package.snap b/tests/snapshots/structure__bin__fail__virtual_workspace_multi_package.snap index 35389055..3434f875 100644 --- a/tests/snapshots/structure__bin__fail__virtual_workspace_multi_package.snap +++ b/tests/snapshots/structure__bin__fail__virtual_workspace_multi_package.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +foobar + STDERR: Error: Multiple packages present in workspace, please explicitly select one via --package flag. diff --git a/tests/snapshots/structure__bin__fail__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/structure__bin__fail__virtual_workspace_single_package_lib_target.snap index bf2166bf..d623041f 100644 --- a/tests/snapshots/structure__bin__fail__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__bin__fail__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/structure__bin__fail__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/structure__bin__fail__virtual_workspace_single_package_multi_target.snap index bee4788a..65246ea0 100644 --- a/tests/snapshots/structure__bin__fail__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__bin__fail__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/structure__bin__fail__workspace_multi_package.snap b/tests/snapshots/structure__bin__fail__workspace_multi_package.snap index 4ce56c7d..dfcec622 100644 --- a/tests/snapshots/structure__bin__fail__workspace_multi_package.snap +++ b/tests/snapshots/structure__bin__fail__workspace_multi_package.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +foobar + STDERR: Error: Multiple packages present in workspace, please explicitly select one via --package flag. diff --git a/tests/snapshots/structure__bin__fail__workspace_single_package_lib_target.snap b/tests/snapshots/structure__bin__fail__workspace_single_package_lib_target.snap index bf2166bf..d623041f 100644 --- a/tests/snapshots/structure__bin__fail__workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__bin__fail__workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/structure__bin__fail__workspace_single_package_multi_target.snap b/tests/snapshots/structure__bin__fail__workspace_single_package_multi_target.snap index bee4788a..65246ea0 100644 --- a/tests/snapshots/structure__bin__fail__workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__bin__fail__workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +foobar + STDERR: Error: No binary target found with name "foobar". diff --git a/tests/snapshots/structure__bin__pass__package_bin_target.snap b/tests/snapshots/structure__bin__pass__package_bin_target.snap index c1628eaa..1b51178f 100644 --- a/tests/snapshots/structure__bin__pass__package_bin_target.snap +++ b/tests/snapshots/structure__bin__pass__package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__bin__pass__package_multi_target.snap b/tests/snapshots/structure__bin__pass__package_multi_target.snap index 04f64767..a82374aa 100644 --- a/tests/snapshots/structure__bin__pass__package_multi_target.snap +++ b/tests/snapshots/structure__bin__pass__package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__bin__pass__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/structure__bin__pass__virtual_workspace_single_package_bin_target.snap index c1628eaa..1b51178f 100644 --- a/tests/snapshots/structure__bin__pass__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__bin__pass__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__bin__pass__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/structure__bin__pass__virtual_workspace_single_package_multi_target.snap index 04f64767..a82374aa 100644 --- a/tests/snapshots/structure__bin__pass__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__bin__pass__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__bin__pass__workspace_single_package_bin_target.snap b/tests/snapshots/structure__bin__pass__workspace_single_package_bin_target.snap index c1628eaa..1b51178f 100644 --- a/tests/snapshots/structure__bin__pass__workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__bin__pass__workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__bin__pass__workspace_single_package_multi_target.snap b/tests/snapshots/structure__bin__pass__workspace_single_package_multi_target.snap index 04f64767..a82374aa 100644 --- a/tests/snapshots/structure__bin__pass__workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__bin__pass__workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__cfg_test__smoke.snap b/tests/snapshots/structure__cfg_test__smoke.snap index c5813e70..542b9fe9 100644 --- a/tests/snapshots/structure__cfg_test__smoke.snap +++ b/tests/snapshots/structure__cfg_test__smoke.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--cfg-test + STDERR: STDOUT: diff --git a/tests/snapshots/structure__cfg_test__with_tests__smoke.snap b/tests/snapshots/structure__cfg_test__with_tests__smoke.snap index c5813e70..542b9fe9 100644 --- a/tests/snapshots/structure__cfg_test__with_tests__smoke.snap +++ b/tests/snapshots/structure__cfg_test__with_tests__smoke.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--cfg-test + STDERR: STDOUT: diff --git a/tests/snapshots/structure__cfg_test__without_tests__smoke.snap b/tests/snapshots/structure__cfg_test__without_tests__smoke.snap index b022d1f9..9c3734bb 100644 --- a/tests/snapshots/structure__cfg_test__without_tests__smoke.snap +++ b/tests/snapshots/structure__cfg_test__without_tests__smoke.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: STDOUT: diff --git a/tests/snapshots/structure__colors__plain__smoke.snap b/tests/snapshots/structure__colors__plain__smoke.snap index b022d1f9..9c3734bb 100644 --- a/tests/snapshots/structure__colors__plain__smoke.snap +++ b/tests/snapshots/structure__colors__plain__smoke.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: STDOUT: diff --git a/tests/snapshots/structure__default__fail__package_multi_target.snap b/tests/snapshots/structure__default__fail__package_multi_target.snap index f626d1c6..234960a1 100644 --- a/tests/snapshots/structure__default__fail__package_multi_target.snap +++ b/tests/snapshots/structure__default__fail__package_multi_target.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: Error: Multiple targets present in package, please explicitly select one via --lib or --bin flag. diff --git a/tests/snapshots/structure__default__fail__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/structure__default__fail__virtual_workspace_single_package_multi_target.snap index f626d1c6..234960a1 100644 --- a/tests/snapshots/structure__default__fail__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__default__fail__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: Error: Multiple targets present in package, please explicitly select one via --lib or --bin flag. diff --git a/tests/snapshots/structure__default__fail__workspace_single_package_multi_target.snap b/tests/snapshots/structure__default__fail__workspace_single_package_multi_target.snap index f626d1c6..234960a1 100644 --- a/tests/snapshots/structure__default__fail__workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__default__fail__workspace_single_package_multi_target.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: Error: Multiple targets present in package, please explicitly select one via --lib or --bin flag. diff --git a/tests/snapshots/structure__default__pass__package_bin_target.snap b/tests/snapshots/structure__default__pass__package_bin_target.snap index c1628eaa..7f68ed2f 100644 --- a/tests/snapshots/structure__default__pass__package_bin_target.snap +++ b/tests/snapshots/structure__default__pass__package_bin_target.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: STDOUT: diff --git a/tests/snapshots/structure__default__pass__package_lib_target.snap b/tests/snapshots/structure__default__pass__package_lib_target.snap index 8a644e79..91839b42 100644 --- a/tests/snapshots/structure__default__pass__package_lib_target.snap +++ b/tests/snapshots/structure__default__pass__package_lib_target.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: STDOUT: diff --git a/tests/snapshots/structure__default__pass__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/structure__default__pass__virtual_workspace_single_package_bin_target.snap index c1628eaa..7f68ed2f 100644 --- a/tests/snapshots/structure__default__pass__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__default__pass__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: STDOUT: diff --git a/tests/snapshots/structure__default__pass__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/structure__default__pass__virtual_workspace_single_package_lib_target.snap index 8a644e79..91839b42 100644 --- a/tests/snapshots/structure__default__pass__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__default__pass__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: STDOUT: diff --git a/tests/snapshots/structure__default__pass__workspace_single_package_bin_target.snap b/tests/snapshots/structure__default__pass__workspace_single_package_bin_target.snap index c1628eaa..7f68ed2f 100644 --- a/tests/snapshots/structure__default__pass__workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__default__pass__workspace_single_package_bin_target.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: STDOUT: diff --git a/tests/snapshots/structure__default__pass__workspace_single_package_lib_target.snap b/tests/snapshots/structure__default__pass__workspace_single_package_lib_target.snap index 8a644e79..91839b42 100644 --- a/tests/snapshots/structure__default__pass__workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__default__pass__workspace_single_package_lib_target.snap @@ -2,6 +2,9 @@ source: tests/structure.rs expression: output --- +CMD: +structure + STDERR: STDOUT: diff --git a/tests/snapshots/structure__focus_on__glob_path__smoke.snap b/tests/snapshots/structure__focus_on__glob_path__smoke.snap index 729f515a..b40e288e 100644 --- a/tests/snapshots/structure__focus_on__glob_path__smoke.snap +++ b/tests/snapshots/structure__focus_on__glob_path__smoke.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--focus-on +smoke::visibility::* + STDERR: STDOUT: diff --git a/tests/snapshots/structure__focus_on__self_path__smoke.snap b/tests/snapshots/structure__focus_on__self_path__smoke.snap index 729f515a..fdb3e9e0 100644 --- a/tests/snapshots/structure__focus_on__self_path__smoke.snap +++ b/tests/snapshots/structure__focus_on__self_path__smoke.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--focus-on +smoke::visibility::dummy::{self} + STDERR: STDOUT: diff --git a/tests/snapshots/structure__focus_on__simple_path__smoke.snap b/tests/snapshots/structure__focus_on__simple_path__smoke.snap index 729f515a..f2f3ebef 100644 --- a/tests/snapshots/structure__focus_on__simple_path__smoke.snap +++ b/tests/snapshots/structure__focus_on__simple_path__smoke.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--focus-on +smoke::visibility::dummy + STDERR: STDOUT: diff --git a/tests/snapshots/structure__focus_on__use_tree__smoke.snap b/tests/snapshots/structure__focus_on__use_tree__smoke.snap index 729f515a..36596b37 100644 --- a/tests/snapshots/structure__focus_on__use_tree__smoke.snap +++ b/tests/snapshots/structure__focus_on__use_tree__smoke.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--focus-on +smoke::visibility::{dummy, hierarchy} + STDERR: STDOUT: diff --git a/tests/snapshots/structure__github__issue_222__github_issue_222.snap b/tests/snapshots/structure__github__issue_222__github_issue_222.snap index 5fcf85c5..f96dea51 100644 --- a/tests/snapshots/structure__github__issue_222__github_issue_222.snap +++ b/tests/snapshots/structure__github__issue_222__github_issue_222.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--no-types +--no-traits +--no-fns + STDERR: STDOUT: diff --git a/tests/snapshots/structure__github__issue_80__tests__github_issue_80.snap b/tests/snapshots/structure__github__issue_80__tests__github_issue_80.snap index 46a1b819..741bf046 100644 --- a/tests/snapshots/structure__github__issue_80__tests__github_issue_80.snap +++ b/tests/snapshots/structure__github__issue_80__tests__github_issue_80.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--cfg-test +--no-traits +--no-fns + STDERR: STDOUT: diff --git a/tests/snapshots/structure__github__issue_80__without_tests__github_issue_80.snap b/tests/snapshots/structure__github__issue_80__without_tests__github_issue_80.snap index caec4cf4..63a653de 100644 --- a/tests/snapshots/structure__github__issue_80__without_tests__github_issue_80.snap +++ b/tests/snapshots/structure__github__issue_80__without_tests__github_issue_80.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--no-traits +--no-fns + STDERR: STDOUT: diff --git a/tests/snapshots/structure__help__smoke.snap b/tests/snapshots/structure__help__smoke.snap index 7041af80..a69800b8 100644 --- a/tests/snapshots/structure__help__smoke.snap +++ b/tests/snapshots/structure__help__smoke.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--help + STDERR: STDOUT: diff --git a/tests/snapshots/structure__lib__fail__package_bin_target.snap b/tests/snapshots/structure__lib__fail__package_bin_target.snap index 94d5f1f9..5912abfd 100644 --- a/tests/snapshots/structure__lib__fail__package_bin_target.snap +++ b/tests/snapshots/structure__lib__fail__package_bin_target.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/structure__lib__fail__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/structure__lib__fail__virtual_workspace_single_package_bin_target.snap index 94d5f1f9..5912abfd 100644 --- a/tests/snapshots/structure__lib__fail__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__lib__fail__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/structure__lib__fail__workspace_single_package_bin_target.snap b/tests/snapshots/structure__lib__fail__workspace_single_package_bin_target.snap index 94d5f1f9..5912abfd 100644 --- a/tests/snapshots/structure__lib__fail__workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__lib__fail__workspace_single_package_bin_target.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/structure__lib__pass__package_lib_target.snap b/tests/snapshots/structure__lib__pass__package_lib_target.snap index 8a644e79..a7ce4b0a 100644 --- a/tests/snapshots/structure__lib__pass__package_lib_target.snap +++ b/tests/snapshots/structure__lib__pass__package_lib_target.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__lib__pass__package_multi_target.snap b/tests/snapshots/structure__lib__pass__package_multi_target.snap index 46a7ef55..9372026a 100644 --- a/tests/snapshots/structure__lib__pass__package_multi_target.snap +++ b/tests/snapshots/structure__lib__pass__package_multi_target.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__lib__pass__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/structure__lib__pass__virtual_workspace_single_package_lib_target.snap index 8a644e79..a7ce4b0a 100644 --- a/tests/snapshots/structure__lib__pass__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__lib__pass__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__lib__pass__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/structure__lib__pass__virtual_workspace_single_package_multi_target.snap index 46a7ef55..9372026a 100644 --- a/tests/snapshots/structure__lib__pass__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__lib__pass__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__lib__pass__workspace_single_package_lib_target.snap b/tests/snapshots/structure__lib__pass__workspace_single_package_lib_target.snap index 8a644e79..a7ce4b0a 100644 --- a/tests/snapshots/structure__lib__pass__workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__lib__pass__workspace_single_package_lib_target.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__lib__pass__workspace_single_package_multi_target.snap b/tests/snapshots/structure__lib__pass__workspace_single_package_multi_target.snap index 46a7ef55..9372026a 100644 --- a/tests/snapshots/structure__lib__pass__workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__lib__pass__workspace_single_package_multi_target.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__max_depth__depth_0__smoke.snap b/tests/snapshots/structure__max_depth__depth_0__smoke.snap index 35805b2e..1e7aa190 100644 --- a/tests/snapshots/structure__max_depth__depth_0__smoke.snap +++ b/tests/snapshots/structure__max_depth__depth_0__smoke.snap @@ -2,6 +2,14 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--no-types +--no-traits +--no-fns +--max-depth +0 + STDERR: STDOUT: diff --git a/tests/snapshots/structure__max_depth__depth_1__smoke.snap b/tests/snapshots/structure__max_depth__depth_1__smoke.snap index 482490a0..dd05f532 100644 --- a/tests/snapshots/structure__max_depth__depth_1__smoke.snap +++ b/tests/snapshots/structure__max_depth__depth_1__smoke.snap @@ -2,6 +2,14 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--no-types +--no-traits +--no-fns +--max-depth +1 + STDERR: STDOUT: diff --git a/tests/snapshots/structure__max_depth__depth_2__smoke.snap b/tests/snapshots/structure__max_depth__depth_2__smoke.snap index 661eb924..5c307192 100644 --- a/tests/snapshots/structure__max_depth__depth_2__smoke.snap +++ b/tests/snapshots/structure__max_depth__depth_2__smoke.snap @@ -2,6 +2,14 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--no-types +--no-traits +--no-fns +--max-depth +2 + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package__fail__package_bin_target.snap b/tests/snapshots/structure__package__fail__package_bin_target.snap index dece570c..b5c59bb3 100644 --- a/tests/snapshots/structure__package__fail__package_bin_target.snap +++ b/tests/snapshots/structure__package__fail__package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__package_lib_target.snap b/tests/snapshots/structure__package__fail__package_lib_target.snap index e2edd776..9eedd1bf 100644 --- a/tests/snapshots/structure__package__fail__package_lib_target.snap +++ b/tests/snapshots/structure__package__fail__package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__package_multi_target.snap b/tests/snapshots/structure__package__fail__package_multi_target.snap index 211ffe41..6e9bd40d 100644 --- a/tests/snapshots/structure__package__fail__package_multi_target.snap +++ b/tests/snapshots/structure__package__fail__package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__virtual_workspace_multi_package.snap b/tests/snapshots/structure__package__fail__virtual_workspace_multi_package.snap index e17fa11f..044bcc03 100644 --- a/tests/snapshots/structure__package__fail__virtual_workspace_multi_package.snap +++ b/tests/snapshots/structure__package__fail__virtual_workspace_multi_package.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/structure__package__fail__virtual_workspace_single_package_bin_target.snap index dece570c..b5c59bb3 100644 --- a/tests/snapshots/structure__package__fail__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package__fail__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/structure__package__fail__virtual_workspace_single_package_lib_target.snap index e2edd776..9eedd1bf 100644 --- a/tests/snapshots/structure__package__fail__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__package__fail__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/structure__package__fail__virtual_workspace_single_package_multi_target.snap index 211ffe41..6e9bd40d 100644 --- a/tests/snapshots/structure__package__fail__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__package__fail__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__workspace_multi_package.snap b/tests/snapshots/structure__package__fail__workspace_multi_package.snap index 373aa22a..7c269648 100644 --- a/tests/snapshots/structure__package__fail__workspace_multi_package.snap +++ b/tests/snapshots/structure__package__fail__workspace_multi_package.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__workspace_single_package_bin_target.snap b/tests/snapshots/structure__package__fail__workspace_single_package_bin_target.snap index dece570c..b5c59bb3 100644 --- a/tests/snapshots/structure__package__fail__workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package__fail__workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__workspace_single_package_lib_target.snap b/tests/snapshots/structure__package__fail__workspace_single_package_lib_target.snap index e2edd776..9eedd1bf 100644 --- a/tests/snapshots/structure__package__fail__workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__package__fail__workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__fail__workspace_single_package_multi_target.snap b/tests/snapshots/structure__package__fail__workspace_single_package_multi_target.snap index 211ffe41..6e9bd40d 100644 --- a/tests/snapshots/structure__package__fail__workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__package__fail__workspace_single_package_multi_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +foobar + STDERR: Error: No package found with name "foobar". diff --git a/tests/snapshots/structure__package__pass__package_bin_target.snap b/tests/snapshots/structure__package__pass__package_bin_target.snap index c1628eaa..cf918a63 100644 --- a/tests/snapshots/structure__package__pass__package_bin_target.snap +++ b/tests/snapshots/structure__package__pass__package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package__pass__package_lib_target.snap b/tests/snapshots/structure__package__pass__package_lib_target.snap index 8a644e79..7f1d9414 100644 --- a/tests/snapshots/structure__package__pass__package_lib_target.snap +++ b/tests/snapshots/structure__package__pass__package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_lib_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package__pass__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/structure__package__pass__virtual_workspace_single_package_bin_target.snap index c1628eaa..cf918a63 100644 --- a/tests/snapshots/structure__package__pass__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package__pass__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package__pass__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/structure__package__pass__virtual_workspace_single_package_lib_target.snap index 8a644e79..7f1d9414 100644 --- a/tests/snapshots/structure__package__pass__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__package__pass__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_lib_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package__pass__workspace_single_package_bin_target.snap b/tests/snapshots/structure__package__pass__workspace_single_package_bin_target.snap index c1628eaa..cf918a63 100644 --- a/tests/snapshots/structure__package__pass__workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package__pass__workspace_single_package_bin_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package__pass__workspace_single_package_lib_target.snap b/tests/snapshots/structure__package__pass__workspace_single_package_lib_target.snap index 8a644e79..7f1d9414 100644 --- a/tests/snapshots/structure__package__pass__workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__package__pass__workspace_single_package_lib_target.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_lib_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_bin__fail__package_bin_target.snap b/tests/snapshots/structure__package_bin__fail__package_bin_target.snap index 3e381a6b..b4fb7336 100644 --- a/tests/snapshots/structure__package_bin__fail__package_bin_target.snap +++ b/tests/snapshots/structure__package_bin__fail__package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__package_lib_target.snap b/tests/snapshots/structure__package_bin__fail__package_lib_target.snap index 8e3dd5f7..233f5026 100644 --- a/tests/snapshots/structure__package_bin__fail__package_lib_target.snap +++ b/tests/snapshots/structure__package_bin__fail__package_lib_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__package_multi_target.snap b/tests/snapshots/structure__package_bin__fail__package_multi_target.snap index e52f70b6..53c2a44f 100644 --- a/tests/snapshots/structure__package_bin__fail__package_multi_target.snap +++ b/tests/snapshots/structure__package_bin__fail__package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__virtual_workspace_multi_package.snap b/tests/snapshots/structure__package_bin__fail__virtual_workspace_multi_package.snap index fc45cddb..fdf888a1 100644 --- a/tests/snapshots/structure__package_bin__fail__virtual_workspace_multi_package.snap +++ b/tests/snapshots/structure__package_bin__fail__virtual_workspace_multi_package.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_bin_target.snap index 3e381a6b..b4fb7336 100644 --- a/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_lib_target.snap index 8e3dd5f7..233f5026 100644 --- a/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_multi_target.snap index e52f70b6..53c2a44f 100644 --- a/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__package_bin__fail__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__workspace_multi_package.snap b/tests/snapshots/structure__package_bin__fail__workspace_multi_package.snap index 7ef53a8b..cea93e7c 100644 --- a/tests/snapshots/structure__package_bin__fail__workspace_multi_package.snap +++ b/tests/snapshots/structure__package_bin__fail__workspace_multi_package.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__workspace_single_package_bin_target.snap b/tests/snapshots/structure__package_bin__fail__workspace_single_package_bin_target.snap index 3e381a6b..b4fb7336 100644 --- a/tests/snapshots/structure__package_bin__fail__workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package_bin__fail__workspace_single_package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__workspace_single_package_lib_target.snap b/tests/snapshots/structure__package_bin__fail__workspace_single_package_lib_target.snap index 8e3dd5f7..233f5026 100644 --- a/tests/snapshots/structure__package_bin__fail__workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__package_bin__fail__workspace_single_package_lib_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__fail__workspace_single_package_multi_target.snap b/tests/snapshots/structure__package_bin__fail__workspace_single_package_multi_target.snap index e52f70b6..53c2a44f 100644 --- a/tests/snapshots/structure__package_bin__fail__workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__package_bin__fail__workspace_single_package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +workspace-package +--bin +foobar + STDERR: Error: No package found with name "workspace-package". diff --git a/tests/snapshots/structure__package_bin__pass__package_bin_target.snap b/tests/snapshots/structure__package_bin__pass__package_bin_target.snap index c1628eaa..226ae607 100644 --- a/tests/snapshots/structure__package_bin__pass__package_bin_target.snap +++ b/tests/snapshots/structure__package_bin__pass__package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_bin_target +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_bin__pass__package_multi_target.snap b/tests/snapshots/structure__package_bin__pass__package_multi_target.snap index 04f64767..b67d9534 100644 --- a/tests/snapshots/structure__package_bin__pass__package_multi_target.snap +++ b/tests/snapshots/structure__package_bin__pass__package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_multi_target +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_bin__pass__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/structure__package_bin__pass__virtual_workspace_single_package_bin_target.snap index c1628eaa..226ae607 100644 --- a/tests/snapshots/structure__package_bin__pass__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package_bin__pass__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_bin_target +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_bin__pass__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/structure__package_bin__pass__virtual_workspace_single_package_multi_target.snap index 04f64767..b67d9534 100644 --- a/tests/snapshots/structure__package_bin__pass__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__package_bin__pass__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_multi_target +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_bin__pass__workspace_single_package_bin_target.snap b/tests/snapshots/structure__package_bin__pass__workspace_single_package_bin_target.snap index c1628eaa..226ae607 100644 --- a/tests/snapshots/structure__package_bin__pass__workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package_bin__pass__workspace_single_package_bin_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_bin_target +--bin +package_bin_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_bin__pass__workspace_single_package_multi_target.snap b/tests/snapshots/structure__package_bin__pass__workspace_single_package_multi_target.snap index 04f64767..b67d9534 100644 --- a/tests/snapshots/structure__package_bin__pass__workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__package_bin__pass__workspace_single_package_multi_target.snap @@ -2,6 +2,13 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_multi_target +--bin +package_multi_target + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_lib__fail__package_bin_target.snap b/tests/snapshots/structure__package_lib__fail__package_bin_target.snap index 94d5f1f9..ea0678ae 100644 --- a/tests/snapshots/structure__package_lib__fail__package_bin_target.snap +++ b/tests/snapshots/structure__package_lib__fail__package_bin_target.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_bin_target +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/structure__package_lib__fail__virtual_workspace_single_package_bin_target.snap b/tests/snapshots/structure__package_lib__fail__virtual_workspace_single_package_bin_target.snap index 94d5f1f9..ea0678ae 100644 --- a/tests/snapshots/structure__package_lib__fail__virtual_workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package_lib__fail__virtual_workspace_single_package_bin_target.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_bin_target +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/structure__package_lib__fail__workspace_single_package_bin_target.snap b/tests/snapshots/structure__package_lib__fail__workspace_single_package_bin_target.snap index 94d5f1f9..ea0678ae 100644 --- a/tests/snapshots/structure__package_lib__fail__workspace_single_package_bin_target.snap +++ b/tests/snapshots/structure__package_lib__fail__workspace_single_package_bin_target.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_bin_target +--lib + STDERR: Error: No library target found. diff --git a/tests/snapshots/structure__package_lib__pass__package_lib_target.snap b/tests/snapshots/structure__package_lib__pass__package_lib_target.snap index 8a644e79..afa53993 100644 --- a/tests/snapshots/structure__package_lib__pass__package_lib_target.snap +++ b/tests/snapshots/structure__package_lib__pass__package_lib_target.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_lib_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_lib__pass__package_multi_target.snap b/tests/snapshots/structure__package_lib__pass__package_multi_target.snap index 46a7ef55..de92a057 100644 --- a/tests/snapshots/structure__package_lib__pass__package_multi_target.snap +++ b/tests/snapshots/structure__package_lib__pass__package_multi_target.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_multi_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_lib__pass__virtual_workspace_single_package_lib_target.snap b/tests/snapshots/structure__package_lib__pass__virtual_workspace_single_package_lib_target.snap index 8a644e79..afa53993 100644 --- a/tests/snapshots/structure__package_lib__pass__virtual_workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__package_lib__pass__virtual_workspace_single_package_lib_target.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_lib_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_lib__pass__virtual_workspace_single_package_multi_target.snap b/tests/snapshots/structure__package_lib__pass__virtual_workspace_single_package_multi_target.snap index 46a7ef55..de92a057 100644 --- a/tests/snapshots/structure__package_lib__pass__virtual_workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__package_lib__pass__virtual_workspace_single_package_multi_target.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_multi_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_lib__pass__workspace_single_package_lib_target.snap b/tests/snapshots/structure__package_lib__pass__workspace_single_package_lib_target.snap index 8a644e79..afa53993 100644 --- a/tests/snapshots/structure__package_lib__pass__workspace_single_package_lib_target.snap +++ b/tests/snapshots/structure__package_lib__pass__workspace_single_package_lib_target.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_lib_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__package_lib__pass__workspace_single_package_multi_target.snap b/tests/snapshots/structure__package_lib__pass__workspace_single_package_multi_target.snap index 46a7ef55..de92a057 100644 --- a/tests/snapshots/structure__package_lib__pass__workspace_single_package_multi_target.snap +++ b/tests/snapshots/structure__package_lib__pass__workspace_single_package_multi_target.snap @@ -2,6 +2,12 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--package +package_multi_target +--lib + STDERR: STDOUT: diff --git a/tests/snapshots/structure__selection__no_fns__smoke.snap b/tests/snapshots/structure__selection__no_fns__smoke.snap index 122dd0bc..056d5633 100644 --- a/tests/snapshots/structure__selection__no_fns__smoke.snap +++ b/tests/snapshots/structure__selection__no_fns__smoke.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--no-fns + STDERR: STDOUT: diff --git a/tests/snapshots/structure__selection__no_traits__smoke.snap b/tests/snapshots/structure__selection__no_traits__smoke.snap index 08210ced..34d8ddba 100644 --- a/tests/snapshots/structure__selection__no_traits__smoke.snap +++ b/tests/snapshots/structure__selection__no_traits__smoke.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--no-traits + STDERR: STDOUT: diff --git a/tests/snapshots/structure__selection__no_types__smoke.snap b/tests/snapshots/structure__selection__no_types__smoke.snap index dc2c77cc..fca6d7ee 100644 --- a/tests/snapshots/structure__selection__no_types__smoke.snap +++ b/tests/snapshots/structure__selection__no_types__smoke.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--no-types + STDERR: STDOUT: diff --git a/tests/snapshots/structure__sort_by__kind__smoke.snap b/tests/snapshots/structure__sort_by__kind__smoke.snap index cf708f5c..35a62e46 100644 --- a/tests/snapshots/structure__sort_by__kind__smoke.snap +++ b/tests/snapshots/structure__sort_by__kind__smoke.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--sort-by +kind + STDERR: STDOUT: diff --git a/tests/snapshots/structure__sort_by__name__smoke.snap b/tests/snapshots/structure__sort_by__name__smoke.snap index b022d1f9..b1a356d3 100644 --- a/tests/snapshots/structure__sort_by__name__smoke.snap +++ b/tests/snapshots/structure__sort_by__name__smoke.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--sort-by +name + STDERR: STDOUT: diff --git a/tests/snapshots/structure__sort_by__visibility__smoke.snap b/tests/snapshots/structure__sort_by__visibility__smoke.snap index 9cc47c9f..09aac3bb 100644 --- a/tests/snapshots/structure__sort_by__visibility__smoke.snap +++ b/tests/snapshots/structure__sort_by__visibility__smoke.snap @@ -2,6 +2,11 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--sort-by +visibility + STDERR: STDOUT: diff --git a/tests/snapshots/structure__sort_reversed__smoke.snap b/tests/snapshots/structure__sort_reversed__smoke.snap index d9fac321..6f2820c1 100644 --- a/tests/snapshots/structure__sort_reversed__smoke.snap +++ b/tests/snapshots/structure__sort_reversed__smoke.snap @@ -2,6 +2,10 @@ source: tests/structure.rs expression: output --- +CMD: +structure +--sort-reversed + STDERR: STDOUT: diff --git a/tests/util.rs b/tests/util.rs index 07865d60..d9c76d48 100644 --- a/tests/util.rs +++ b/tests/util.rs @@ -3,7 +3,6 @@ use std::{path::PathBuf, str::from_utf8}; use assert_cmd::Command; -use shellwords::split; // If we clicking the `Run test(s)` btn which is(are) provided by `vscode-rust-analyzer` plugin. // That plugin will automatically set the `RUST_BACKTRACE` env as `short` and then trigger `cargo test`. @@ -41,7 +40,7 @@ pub fn output(mut cmd: Command, expect_success: bool) -> (String, String) { } #[allow(dead_code)] -pub fn cmd(dir: &str, args: &str) -> Command { +pub fn cmd<'a>(dir: &str, args: impl Iterator) -> Command { let mut dir_path = PathBuf::new(); dir_path.push("."); @@ -49,12 +48,6 @@ pub fn cmd(dir: &str, args: &str) -> Command { dir_path.push("projects"); dir_path.push(dir); - let args: Vec = match split(args) { - Ok(args) => args, - Err(err) => panic!("{}", err), - }; - let args: Vec<&str> = args.iter().map(|s| s.as_str()).collect(); - let mut command = Command::cargo_bin("cargo-modules").unwrap(); command.current_dir(dir_path); @@ -137,9 +130,12 @@ macro_rules! test_cmd { $(#[$attrs])* #[test] fn $project() { + use std::fmt::Write; + use crate::util::ColorMode; - let mut cmd = crate::util::cmd(stringify!($project), $args); + let args: Vec = ::shellwords::split($args).unwrap(); + let mut cmd = crate::util::cmd(stringify!($project), args.iter()); #[allow(unreachable_patterns)] match $color_mode { @@ -154,8 +150,15 @@ macro_rules! test_cmd { }, } + let cmd_args = format!("{}\n", args.join("\n")); + let (stdout, stderr) = crate::util::output(cmd, $success); - let output = format!("STDERR:\n{}\nSTDOUT:\n{}", stderr, stdout); + + let mut output = String::new(); + + writeln!(&mut output, "CMD:\n{cmd_args}").unwrap(); + writeln!(&mut output, "STDERR:\n{stderr}").unwrap(); + writeln!(&mut output, "STDOUT:\n{stdout}").unwrap(); insta::assert_snapshot!(output); }