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

Function snap_suffix

libs/error-stack/tests/test_debug.rs:52–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52fn snap_suffix() -> String {
53 #[cfg_attr(
54 not(any(feature = "backtrace", feature = "spantrace")),
55 expect(unused_mut)
56 )]
57 let mut suffix: Vec<&'static str> = vec![];
58
59 #[cfg(feature = "spantrace")]
60 {
61 suffix.push("spantrace");
62 }
63
64 #[cfg(feature = "backtrace")]
65 if supports_backtrace() {
66 suffix.push("backtrace");
67 }
68
69 suffix.join("-")
70}
71
72/// Overwrite to create spantraces when necessary.
73#[cfg(feature = "spantrace")]

Callers 1

prepareFunction · 0.85

Calls 3

supports_backtraceFunction · 0.85
pushMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected