(&self)
| 100 | #[cfg(feature = "template-runner")] |
| 101 | impl TailCaptureHandle { |
| 102 | fn text(&self) -> String { |
| 103 | let Ok(state) = self.inner.lock() else { |
| 104 | return "<template output capture lock poisoned>".to_owned(); |
| 105 | }; |
| 106 | let bytes = state.bytes.iter().copied().collect::<Vec<_>>(); |
| 107 | String::from_utf8_lossy(&bytes).into_owned() |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | #[cfg(feature = "template-runner")] |
no test coverage detected