MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / test_command

Function test_command

tests/integration.rs:10–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8const CLI_PKG_NAME: &str = "aiscript";
9
10fn test_command() -> Command {
11 // Create full path to binary
12 let mut path = env::current_exe()
13 .unwrap()
14 .parent()
15 .unwrap()
16 .parent()
17 .unwrap()
18 .to_owned();
19 // path.push(env!("CARGO_PKG_NAME"));
20 path.push(CLI_PKG_NAME);
21 path.set_extension(env::consts::EXE_EXTENSION);
22 Command::new(path.into_os_string())
23}
24
25struct RuntimeError {
26 line_prefix: String,

Callers 1

run_file_testFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected