MCPcopy Create free account
hub / github.com/Compaile/ctrack / recursive_factorial

Function recursive_factorial

test/test_basic.cpp:52–59  ·  view source on GitHub ↗

Recursive function

Source from the content-addressed store, hash-verified

50
51// Recursive function
52int recursive_factorial(int n)
53{
54 CTRACK;
55 test_helpers::sleep_ms(5); // 5ms delay per call
56 if (n <= 1)
57 return 1;
58 return n * recursive_factorial(n - 1);
59}
60
61TEST_CASE("Basic single function tracking - 5ms sleep")
62{

Callers 1

test_basic.cppFile · 0.70

Calls 1

sleep_msFunction · 0.85

Tested by

no test coverage detected