(target: &Path, prefix: &str)
| 387 | } |
| 388 | |
| 389 | fn manifest_json(target: &Path, prefix: &str) -> Value { |
| 390 | json!({ |
| 391 | "target": target.to_string_lossy(), |
| 392 | "command_prefix": prefix, |
| 393 | "hooks": { |
| 394 | "SessionStart": [ |
| 395 | { "hooks": [ { "type": "command", "command": format!("{} session-start", prefix), "statusMessage": "Atomic" } ] } |
| 396 | ], |
| 397 | "Stop": [ |
| 398 | { "hooks": [ { "type": "command", "command": format!("{} stop", prefix) } ] } |
| 399 | ] |
| 400 | } |
| 401 | }) |
| 402 | } |
| 403 | |
| 404 | #[test] |
| 405 | fn installs_into_empty_target() { |
no outgoing calls