(target: &Path, prefix: &str)
| 349 | } |
| 350 | |
| 351 | fn manifest_json(target: &Path, prefix: &str) -> Value { |
| 352 | json!({ |
| 353 | "target": target.to_string_lossy(), |
| 354 | "command_prefix": prefix, |
| 355 | "hooks": { |
| 356 | "SessionStart": [ |
| 357 | { "hooks": [ { "type": "command", "command": format!("{} session-start", prefix), "statusMessage": "Atomic" } ] } |
| 358 | ], |
| 359 | "Stop": [ |
| 360 | { "hooks": [ { "type": "command", "command": format!("{} stop", prefix) } ] } |
| 361 | ] |
| 362 | } |
| 363 | }) |
| 364 | } |
| 365 | |
| 366 | #[test] |
| 367 | fn installs_into_empty_target() { |
no outgoing calls