mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
test(complete): Use official extensions for snapshots
This commit is contained in:
parent
1e181770ac
commit
55bfacbf43
40 changed files with 35 additions and 35 deletions
|
@ -5,7 +5,7 @@ fn basic() {
|
|||
let name = "my-app";
|
||||
let cmd = common::basic_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/basic.bash.log",
|
||||
"tests/snapshots/basic.bash",
|
||||
clap_complete::shells::Bash,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -17,7 +17,7 @@ fn feature_sample() {
|
|||
let name = "my-app";
|
||||
let cmd = common::feature_sample_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/feature_sample.bash.log",
|
||||
"tests/snapshots/feature_sample.bash",
|
||||
clap_complete::shells::Bash,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -29,7 +29,7 @@ fn special_commands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::special_commands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/special_commands.bash.log",
|
||||
"tests/snapshots/special_commands.bash",
|
||||
clap_complete::shells::Bash,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -41,7 +41,7 @@ fn quoting() {
|
|||
let name = "my-app";
|
||||
let cmd = common::quoting_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/quoting.bash.log",
|
||||
"tests/snapshots/quoting.bash",
|
||||
clap_complete::shells::Bash,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -53,7 +53,7 @@ fn aliases() {
|
|||
let name = "my-app";
|
||||
let cmd = common::aliases_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/aliases.bash.log",
|
||||
"tests/snapshots/aliases.bash",
|
||||
clap_complete::shells::Bash,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -65,7 +65,7 @@ fn sub_subcommands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::sub_subcommands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/sub_subcommands.bash.log",
|
||||
"tests/snapshots/sub_subcommands.bash",
|
||||
clap_complete::shells::Bash,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -77,7 +77,7 @@ fn value_hint() {
|
|||
let name = "my-app";
|
||||
let cmd = common::value_hint_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/value_hint.bash.log",
|
||||
"tests/snapshots/value_hint.bash",
|
||||
clap_complete::shells::Bash,
|
||||
cmd,
|
||||
name,
|
||||
|
|
|
@ -5,7 +5,7 @@ fn basic() {
|
|||
let name = "my-app";
|
||||
let cmd = common::basic_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/basic.elvish.log",
|
||||
"tests/snapshots/basic.elvish",
|
||||
clap_complete::shells::Elvish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -17,7 +17,7 @@ fn feature_sample() {
|
|||
let name = "my-app";
|
||||
let cmd = common::feature_sample_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/feature_sample.elvish.log",
|
||||
"tests/snapshots/feature_sample.elvish",
|
||||
clap_complete::shells::Elvish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -29,7 +29,7 @@ fn special_commands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::special_commands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/special_commands.elvish.log",
|
||||
"tests/snapshots/special_commands.elvish",
|
||||
clap_complete::shells::Elvish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -41,7 +41,7 @@ fn quoting() {
|
|||
let name = "my-app";
|
||||
let cmd = common::quoting_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/quoting.elvish.log",
|
||||
"tests/snapshots/quoting.elvish",
|
||||
clap_complete::shells::Elvish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -53,7 +53,7 @@ fn aliases() {
|
|||
let name = "my-app";
|
||||
let cmd = common::aliases_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/aliases.elvish.log",
|
||||
"tests/snapshots/aliases.elvish",
|
||||
clap_complete::shells::Elvish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -65,7 +65,7 @@ fn sub_subcommands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::sub_subcommands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/sub_subcommands.elvish.log",
|
||||
"tests/snapshots/sub_subcommands.elvish",
|
||||
clap_complete::shells::Elvish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -77,7 +77,7 @@ fn value_hint() {
|
|||
let name = "my-app";
|
||||
let cmd = common::value_hint_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/value_hint.elvish.log",
|
||||
"tests/snapshots/value_hint.elvish",
|
||||
clap_complete::shells::Elvish,
|
||||
cmd,
|
||||
name,
|
||||
|
|
|
@ -5,7 +5,7 @@ fn basic() {
|
|||
let name = "my-app";
|
||||
let cmd = common::basic_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/basic.fish.log",
|
||||
"tests/snapshots/basic.fish",
|
||||
clap_complete::shells::Fish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -17,7 +17,7 @@ fn feature_sample() {
|
|||
let name = "my-app";
|
||||
let cmd = common::feature_sample_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/feature_sample.fish.log",
|
||||
"tests/snapshots/feature_sample.fish",
|
||||
clap_complete::shells::Fish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -29,7 +29,7 @@ fn special_commands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::special_commands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/special_commands.fish.log",
|
||||
"tests/snapshots/special_commands.fish",
|
||||
clap_complete::shells::Fish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -41,7 +41,7 @@ fn quoting() {
|
|||
let name = "my-app";
|
||||
let cmd = common::quoting_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/quoting.fish.log",
|
||||
"tests/snapshots/quoting.fish",
|
||||
clap_complete::shells::Fish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -53,7 +53,7 @@ fn aliases() {
|
|||
let name = "my-app";
|
||||
let cmd = common::aliases_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/aliases.fish.log",
|
||||
"tests/snapshots/aliases.fish",
|
||||
clap_complete::shells::Fish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -65,7 +65,7 @@ fn sub_subcommands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::sub_subcommands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/sub_subcommands.fish.log",
|
||||
"tests/snapshots/sub_subcommands.fish",
|
||||
clap_complete::shells::Fish,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -77,7 +77,7 @@ fn value_hint() {
|
|||
let name = "my-app";
|
||||
let cmd = common::value_hint_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/value_hint.fish.log",
|
||||
"tests/snapshots/value_hint.fish",
|
||||
clap_complete::shells::Fish,
|
||||
cmd,
|
||||
name,
|
||||
|
|
|
@ -5,7 +5,7 @@ fn basic() {
|
|||
let name = "my-app";
|
||||
let cmd = common::basic_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/basic.powershell.log",
|
||||
"tests/snapshots/basic.ps1",
|
||||
clap_complete::shells::PowerShell,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -17,7 +17,7 @@ fn feature_sample() {
|
|||
let name = "my-app";
|
||||
let cmd = common::feature_sample_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/feature_sample.powershell.log",
|
||||
"tests/snapshots/feature_sample.ps1",
|
||||
clap_complete::shells::PowerShell,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -29,7 +29,7 @@ fn special_commands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::special_commands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/special_commands.powershell.log",
|
||||
"tests/snapshots/special_commands.ps1",
|
||||
clap_complete::shells::PowerShell,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -41,7 +41,7 @@ fn quoting() {
|
|||
let name = "my-app";
|
||||
let cmd = common::quoting_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/quoting.powershell.log",
|
||||
"tests/snapshots/quoting.ps1",
|
||||
clap_complete::shells::PowerShell,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -53,7 +53,7 @@ fn aliases() {
|
|||
let name = "my-app";
|
||||
let cmd = common::aliases_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/aliases.powershell.log",
|
||||
"tests/snapshots/aliases.ps1",
|
||||
clap_complete::shells::PowerShell,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -65,7 +65,7 @@ fn sub_subcommands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::sub_subcommands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/sub_subcommands.powershell.log",
|
||||
"tests/snapshots/sub_subcommands.ps1",
|
||||
clap_complete::shells::PowerShell,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -77,7 +77,7 @@ fn value_hint() {
|
|||
let name = "my-app";
|
||||
let cmd = common::value_hint_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/value_hint.powershell.log",
|
||||
"tests/snapshots/value_hint.ps1",
|
||||
clap_complete::shells::PowerShell,
|
||||
cmd,
|
||||
name,
|
||||
|
|
|
@ -5,7 +5,7 @@ fn basic() {
|
|||
let name = "my-app";
|
||||
let cmd = common::basic_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/basic.zsh.log",
|
||||
"tests/snapshots/basic.zsh",
|
||||
clap_complete::shells::Zsh,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -17,7 +17,7 @@ fn feature_sample() {
|
|||
let name = "my-app";
|
||||
let cmd = common::feature_sample_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/feature_sample.zsh.log",
|
||||
"tests/snapshots/feature_sample.zsh",
|
||||
clap_complete::shells::Zsh,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -29,7 +29,7 @@ fn special_commands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::special_commands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/special_commands.zsh.log",
|
||||
"tests/snapshots/special_commands.zsh",
|
||||
clap_complete::shells::Zsh,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -41,7 +41,7 @@ fn quoting() {
|
|||
let name = "my-app";
|
||||
let cmd = common::quoting_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/quoting.zsh.log",
|
||||
"tests/snapshots/quoting.zsh",
|
||||
clap_complete::shells::Zsh,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -53,7 +53,7 @@ fn aliases() {
|
|||
let name = "my-app";
|
||||
let cmd = common::aliases_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/aliases.zsh.log",
|
||||
"tests/snapshots/aliases.zsh",
|
||||
clap_complete::shells::Zsh,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -65,7 +65,7 @@ fn sub_subcommands() {
|
|||
let name = "my-app";
|
||||
let cmd = common::sub_subcommands_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/sub_subcommands.zsh.log",
|
||||
"tests/snapshots/sub_subcommands.zsh",
|
||||
clap_complete::shells::Zsh,
|
||||
cmd,
|
||||
name,
|
||||
|
@ -77,7 +77,7 @@ fn value_hint() {
|
|||
let name = "my-app";
|
||||
let cmd = common::value_hint_command(name);
|
||||
common::assert_matches_path(
|
||||
"tests/snapshots/value_hint.zsh.log",
|
||||
"tests/snapshots/value_hint.zsh",
|
||||
clap_complete::shells::Zsh,
|
||||
cmd,
|
||||
name,
|
||||
|
|
Loading…
Reference in a new issue