1 mod common;
2
3 #[test]
basic()4 fn basic() {
5 let name = "my-app";
6 let cmd = common::basic_command(name);
7 common::assert_matches_path(
8 "tests/snapshots/basic.fish",
9 clap_complete::shells::Fish,
10 cmd,
11 name,
12 );
13 }
14
15 #[test]
feature_sample()16 fn feature_sample() {
17 let name = "my-app";
18 let cmd = common::feature_sample_command(name);
19 common::assert_matches_path(
20 "tests/snapshots/feature_sample.fish",
21 clap_complete::shells::Fish,
22 cmd,
23 name,
24 );
25 }
26
27 #[test]
special_commands()28 fn special_commands() {
29 let name = "my-app";
30 let cmd = common::special_commands_command(name);
31 common::assert_matches_path(
32 "tests/snapshots/special_commands.fish",
33 clap_complete::shells::Fish,
34 cmd,
35 name,
36 );
37 }
38
39 #[test]
quoting()40 fn quoting() {
41 let name = "my-app";
42 let cmd = common::quoting_command(name);
43 common::assert_matches_path(
44 "tests/snapshots/quoting.fish",
45 clap_complete::shells::Fish,
46 cmd,
47 name,
48 );
49 }
50
51 #[test]
aliases()52 fn aliases() {
53 let name = "my-app";
54 let cmd = common::aliases_command(name);
55 common::assert_matches_path(
56 "tests/snapshots/aliases.fish",
57 clap_complete::shells::Fish,
58 cmd,
59 name,
60 );
61 }
62
63 #[test]
sub_subcommands()64 fn sub_subcommands() {
65 let name = "my-app";
66 let cmd = common::sub_subcommands_command(name);
67 common::assert_matches_path(
68 "tests/snapshots/sub_subcommands.fish",
69 clap_complete::shells::Fish,
70 cmd,
71 name,
72 );
73 }
74
75 #[test]
value_hint()76 fn value_hint() {
77 let name = "my-app";
78 let cmd = common::value_hint_command(name);
79 common::assert_matches_path(
80 "tests/snapshots/value_hint.fish",
81 clap_complete::shells::Fish,
82 cmd,
83 name,
84 );
85 }
86
87 #[test]
value_terminator()88 fn value_terminator() {
89 let name = "my-app";
90 let cmd = common::value_terminator_command(name);
91 common::assert_matches_path(
92 "tests/snapshots/value_terminator.fish",
93 clap_complete::shells::Fish,
94 cmd,
95 name,
96 );
97 }
98