MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / test_stack_capture_disabled

Function test_stack_capture_disabled

crates/memtrack/tests/stack_tests.rs:129–137  ·  view source on GitHub ↗
(
    #[case] test_case: &AllocationTestCase,
)

Source from the content-addressed store, hash-verified

127#[case(&STACK_TEST_CASES[2])]
128#[test_log::test]
129fn test_stack_capture_disabled(
130 #[case] test_case: &AllocationTestCase,
131) -> Result<(), Box<dyn std::error::Error>> {
132 assert_stack_snapshot(
133 test_case,
134 false,
135 &format!("{}_stack_capture_disabled", test_case.name),
136 )
137}
138
139/// A hooked allocator calling another hooked allocator (`operator new` →
140/// `malloc`) must restore the return address that the uretprobe trampoline

Callers

nothing calls this directly

Calls 1

assert_stack_snapshotFunction · 0.85

Tested by

no test coverage detected