MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / collect_stderr

Method collect_stderr

tests/support/mod.rs:53–60  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

51 }
52
53 pub(crate) fn collect_stderr(&mut self) -> String {
54 let _ = self.child.kill();
55 let _ = self.child.wait();
56 self.stderr
57 .take()
58 .and_then(|reader| reader.join().ok())
59 .unwrap_or_default()
60 }
61}
62
63impl Drop for ChildGuard {

Calls 1

joinMethod · 0.45