Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catchorg/Catch2
/ Factorial
Function
Factorial
tests/SelfTest/UsageTests/Misc.tests.cpp:39–41 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
37
}
38
39
static unsigned int Factorial(unsigned int number) {
40
return number > 1 ? Factorial(number - 1) * number : 1;
41
}
42
43
static int f() {
44
return 1;
Callers
1
Misc.tests.cpp
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected