MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / spawn_query

Function spawn_query

atomic-cli/tests/it/concurrent_intent_reads_test.rs:18–26  ·  view source on GitHub ↗
(root: &std::path::Path, args: &[&str])

Source from the content-addressed store, hash-verified

16}
17
18fn spawn_query(root: &std::path::Path, args: &[&str]) -> std::process::Child {
19 Command::new(env!("CARGO_BIN_EXE_atomic"))
20 .args(args)
21 .current_dir(root)
22 .stdout(Stdio::piped())
23 .stderr(Stdio::piped())
24 .spawn()
25 .unwrap()
26}
27
28fn finish_queries(mut queries: Queries, timeout: Duration) -> Vec<std::process::Output> {
29 let deadline = Instant::now() + timeout;

Calls 2

spawnMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected