Build a `WatchSandboxesEvent` carrying a sandbox snapshot.
(sandbox: DriverSandbox)
| 30 | |
| 31 | /// Build a `WatchSandboxesEvent` carrying a sandbox snapshot. |
| 32 | fn sandbox_event(sandbox: DriverSandbox) -> WatchSandboxesEvent { |
| 33 | WatchSandboxesEvent { |
| 34 | payload: Some(watch_sandboxes_event::Payload::Sandbox( |
| 35 | WatchSandboxesSandboxEvent { |
| 36 | sandbox: Some(sandbox), |
| 37 | }, |
| 38 | )), |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | /// Build a `WatchSandboxesEvent` for a deleted sandbox. |
| 43 | fn deleted_event(sandbox_id: String) -> WatchSandboxesEvent { |
no test coverage detected