(fixture: &Fixture)
| 313 | } |
| 314 | |
| 315 | fn latest_change(fixture: &Fixture) -> String { |
| 316 | let log: Value = serde_json::from_slice(&fixture.log_json()).expect("Atomic JSON log"); |
| 317 | log.as_array() |
| 318 | .and_then(|changes| changes.first()) |
| 319 | .and_then(|change| change.get("hash")) |
| 320 | .and_then(Value::as_str) |
| 321 | .expect("latest Atomic change hash") |
| 322 | .to_string() |
| 323 | } |
| 324 | |
| 325 | fn assert_guard_refusal(fixture: &Fixture, operation: &str, args: &[&str]) { |
| 326 | let before = RepositorySnapshot::capture(fixture); |
no test coverage detected