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

Function create_report

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

Source from the content-addressed store, hash-verified

72/// Overwrite to create spantraces when necessary.
73#[cfg(feature = "spantrace")]
74pub 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
88fn prepare(suffix: bool) -> impl Drop {
89 setup();

Callers 15

create_sources_nestedFunction · 0.70
linearFunction · 0.70
linear_extFunction · 0.70
multilineFunction · 0.70
sourcesFunction · 0.70
sources_transparentFunction · 0.70
complexFunction · 0.70
hookFunction · 0.70
hook_contextFunction · 0.70
hook_for_contextFunction · 0.70
hook_multipleFunction · 0.70
hook_decrFunction · 0.70

Calls 1

capture_errorFunction · 0.85

Tested by

no test coverage detected