()
| 72 | /// Overwrite to create spantraces when necessary. |
| 73 | #[cfg(feature = "spantrace")] |
| 74 | pub fn create_report() -> Report<RootError> { |
| 75 | #[tracing::instrument] |
| 76 | fn func_b() -> Result<(), Report<RootError>> { |
| 77 | create_error() |
| 78 | } |
| 79 | |
| 80 | #[tracing::instrument] |
| 81 | fn func_a() -> Result<(), Report<RootError>> { |
| 82 | func_b() |
| 83 | } |
| 84 | |
| 85 | capture_error(func_a) |
| 86 | } |
| 87 | |
| 88 | fn prepare(suffix: bool) -> impl Drop { |
| 89 | setup(); |
no test coverage detected