Recursive function
| 50 | |
| 51 | // Recursive function |
| 52 | int 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 | |
| 61 | TEST_CASE("Basic single function tracking - 5ms sleep") |
| 62 | { |
no test coverage detected