Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ withinAmount
Function
withinAmount
source/test/stat_test.cpp:7–9 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
using namespace Star;
6
7
bool withinAmount(float value, float target, float amount) {
8
return fabs(value - target) <= amount;
9
}
10
11
TEST(StatTest, Set) {
12
StatSet stats;
Callers
1
TEST
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected