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

Function parse_hook_json

atomic-cli/tests/it/git_guard_cb0c_test.rs:409–416  ·  view source on GitHub ↗
(output: &Output)

Source from the content-addressed store, hash-verified

407}
408
409fn parse_hook_json(output: &Output) -> Value {
410 let line = String::from_utf8_lossy(&output.stdout)
411 .lines()
412 .find(|line| line.starts_with('{'))
413 .expect("hook JSON result")
414 .to_string();
415 serde_json::from_str(&line).expect("parse hook JSON result")
416}
417
418fn assert_incomplete_hook_result(
419 fixture: &Fixture,

Callers 1

Calls 1

linesMethod · 0.45

Tested by

no test coverage detected