this repo has no description
1use super::*;
2use insta::assert_snapshot;
3
4#[test]
5fn test_shell_program_not_found_error() {
6 let cmds = vec!["erlc", "rebar3", "deno", "elixir", "node", "bun", "git"];
7 let oses = vec!["macos", "linux"];
8 let distros = vec!["ubuntu", "other"];
9
10 for cmd in &cmds {
11 for os in &oses {
12 if os != &"linux" {
13 let err = Error::ShellProgramNotFound {
14 program: cmd.to_string(),
15 os: parse_os(os, "other"),
16 }
17 .to_diagnostics();
18 assert_snapshot!(
19 format!("shell_program_not_found_{cmd}_{os}_other"),
20 err[0].text
21 );
22 } else {
23 for distro in &distros {
24 let err = Error::ShellProgramNotFound {
25 program: cmd.to_string(),
26 os: parse_os(os, distro),
27 }
28 .to_diagnostics();
29 assert_snapshot!(
30 format!("shell_program_not_found_{cmd}_{os}_{distro}"),
31 err[0].text
32 );
33 }
34 }
35 }
36 }
37}