(&mut self)
| 3484 | |
| 3485 | impl Drop for NativePostgres { |
| 3486 | fn drop(&mut self) { |
| 3487 | if self.child.try_wait().ok().flatten().is_none() { |
| 3488 | terminate_child_gracefully(&mut self.child); |
| 3489 | if self.child.try_wait().ok().flatten().is_none() { |
| 3490 | let _ = self.child.kill(); |
| 3491 | } |
| 3492 | let _ = self.child.wait(); |
| 3493 | } |
| 3494 | let _ = fs::remove_dir_all(&self.root); |
| 3495 | } |
| 3496 | } |
| 3497 | |
| 3498 | fn terminate_child_gracefully(child: &mut Child) { |
nothing calls this directly
no test coverage detected