MCPcopy Create free account
hub / github.com/corrode/write-yourself-a-shell / kill_after

Method kill_after

tests/all/utils.rs:35–38  ·  view source on GitHub ↗

Wait duration and kill the command afterwards. Useful to test commands that don't exit on their own.

(mut self, duration: Duration)

Source from the content-addressed store, hash-verified

33 /// Wait duration and kill the command afterwards.
34 /// Useful to test commands that don't exit on their own.
35 pub fn kill_after(mut self, duration: Duration) -> Self {
36 self.kill_after = Some(duration);
37 self
38 }
39
40 pub fn run(&self) -> Output {
41 let mut child = self.run_shell();

Callers 10

supports_relative_cdFunction · 0.80
supports_exit_builtinFunction · 0.80
test_pipes_evaluationFunction · 0.80
shell_runs_pwdFunction · 0.80
test_historyFunction · 0.80
shell_runs_pwd_twiceFunction · 0.80

Calls

no outgoing calls

Tested by 10

supports_relative_cdFunction · 0.64
supports_exit_builtinFunction · 0.64
test_pipes_evaluationFunction · 0.64
shell_runs_pwdFunction · 0.64
test_historyFunction · 0.64
shell_runs_pwd_twiceFunction · 0.64