MCPcopy Create free account
hub / github.com/hashintel/hash / supports_backtrace

Function supports_backtrace

libs/error-stack/tests/common.rs:219–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217
218#[cfg(feature = "backtrace")]
219pub fn supports_backtrace() -> bool {
220 static STATE: LazyLock<bool> = LazyLock::new(|| {
221 let bt = std::backtrace::Backtrace::capture();
222 bt.status() == std::backtrace::BacktraceStatus::Captured
223 });
224
225 *STATE
226}
227
228#[cfg(feature = "spantrace")]
229pub fn supports_spantrace() -> bool {

Callers 2

snap_suffixFunction · 0.85
expect_countFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected