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

Class KillOnDrop

atomic-cli/tests/provenance_rpc_sink.rs:27–27  ·  view source on GitHub ↗

Kills the spawned daemon when dropped — a panic in the test must not leak a lock-holding daemon for the next run.

Source from the content-addressed store, hash-verified

25/// Kills the spawned daemon when dropped — a panic in the test must not
26/// leak a lock-holding daemon for the next run.
27struct KillOnDrop(Child);
28
29impl Drop for KillOnDrop {
30 fn drop(&mut self) {

Calls

no outgoing calls