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

Method ok

atomic-cli/tests/it/git_shim_workspace_test.rs:35–48  ·  view source on GitHub ↗
(&self, program: &str, args: &[&str])

Source from the content-addressed store, hash-verified

33 }
34
35 fn ok(&self, program: &str, args: &[&str]) -> String {
36 let output = self.command(program, args);
37 let text = format!(
38 "{}{}",
39 String::from_utf8_lossy(&output.stdout),
40 String::from_utf8_lossy(&output.stderr)
41 );
42 assert!(output.status.success(), "{args:?}: {text}");
43 assert!(
44 !text.contains("could not persist its interpretation closure"),
45 "{text}"
46 );
47 String::from_utf8(output.stdout).unwrap()
48 }
49
50 fn atomic(&self, args: &[&str]) -> String {
51 self.ok(env!("CARGO_BIN_EXE_atomic"), args)

Callers 15

gitFunction · 0.45
currentFunction · 0.45
targetFunction · 0.45
run_git_statusFunction · 0.45
run_clearMethod · 0.45
change_hash_candidatesFunction · 0.45
entry_status_labelFunction · 0.45
kg_node_domainFunction · 0.45
kg_edge_domainFunction · 0.45
short_hashFunction · 0.45
full_hashFunction · 0.45
logFunction · 0.45

Calls 2

commandMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected