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

Method json

atomic-cli/tests/it/json_output_contract_test.rs:68–73  ·  view source on GitHub ↗
(&self, args: &[&str])

Source from the content-addressed store, hash-verified

66 }
67
68 fn json(&self, args: &[&str]) -> Value {
69 let text = self.ok(args);
70 serde_json::from_str(&text).unwrap_or_else(|error| {
71 panic!("{args:?} must emit exactly one JSON document: {error}: {text}")
72 })
73 }
74
75 fn identity(&self) {
76 self.ok(&[

Calls 1

okMethod · 0.45

Tested by

no test coverage detected