fn deps_file_invalid_tool_in_nested_dep() {
    let nested_deps_file_conts = indoc!{"
        deps

        proj tool source version
    "};
    let NestedTestSetup{dep_srcs_dir, proj_dir, deps_file_conts} =
        create_nested_test_setup(
            "deps_file_invalid_tool_in_nested_dep",
            nested_deps_file_conts,
        );
    let cmd_result = test_setup::with_git_server(
        dep_srcs_dir,
        || {
            let mut cmd = test_setup::new_test_cmd(proj_dir.clone());
            cmd.arg("--recursive");

            cmd.assert()
        },
    );

    cmd_result
        .code(1)
        .stdout("")
        .stderr(
            "deps/bad_dep/dpnd.txt:3: The dependency 'proj' of the nested \
             dependency 'bad_dep' specifies an invalid tool name ('tool'); \
             the supported tool is 'git'\n",
        );
    assert_nested_dep_contents(
        &proj_dir,
        &deps_file_conts,
        nested_deps_file_conts,
    );
}
// Given the dependency file of a nested dependency contains an unknown tool
// When the command is run with `--recursive`
// Then the command fails with an error
Given the dependency file of a nested dependency contains an unknown tool
When the command is run with `--recursive`
Then the command fails with an error
Given the dependency file of a nested dependency contains an unknown tool When the command is run with ` -- recursive ` Then the command fails with an error
fn deps_file_invalid_tool_in_nested_dep() {
    let nested_deps_file_conts = indoc!{"
        deps
        proj tool source version
    "};
    let NestedTestSetup{dep_srcs_dir, proj_dir, deps_file_conts} =
        create_nested_test_setup(
            "deps_file_invalid_tool_in_nested_dep",
            nested_deps_file_conts,
        );
    let cmd_result = test_setup::with_git_server(
        dep_srcs_dir,
        || {
            let mut cmd = test_setup::new_test_cmd(proj_dir.clone());
            cmd.arg("--recursive");
            cmd.assert()
        },
    );
    cmd_result
        .code(1)
        .stdout("")
        .stderr(
            "deps/bad_dep/dpnd.txt:3: The dependency 'proj' of the nested \
             dependency 'bad_dep' specifies an invalid tool name ('tool'); \
             the supported tool is 'git'\n",
        );
    assert_nested_dep_contents(
        &proj_dir,
        &deps_file_conts,
        nested_deps_file_conts,
    );
}
fn deps_file_invalid_tool_in_nested_dep ( ) { let nested_deps_file_conts = indoc ! { " " } ; let NestedTestSetup { dep_srcs_dir , proj_dir , deps_file_conts } = create_nested_test_setup ( " " , nested_deps_file_conts , ) ; let cmd_result = test_setup :: with_git_server ( dep_srcs_dir , | | { let mut cmd = test_setup :: new_test_cmd ( proj_dir . clone ( ) ) ; cmd . arg ( " " ) ; cmd . assert ( ) } , ) ; cmd_result . code ( 1 ) . stdout ( " " ) . stderr ( " \
 \
 \n " , ) ; assert_nested_dep_contents ( & proj_dir , & deps_file_conts , nested_deps_file_conts , ) ; }
Given the dependency file of a nested dependency contains an unknown tool
When the command is run with `--recursive`
Then the command fails with an error
Given the dependency file of a nested dependency contains an unknown tool When the command is run with ` -- recursive ` Then the command fails with an error