Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/sonic-cpp
/ is_correct
Function
is_correct
tests/memcmp_test.cpp:44–48 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
}
43
44
bool is_correct(int a, int b) {
45
if (a < 0) return b < 0;
46
if (a > 0) return b > 0;
47
return a == b;
48
}
49
50
TEST(InlinedMemcmp, Basic) {
51
EXPECT_EQ(0, InlinedMemcmp(
""
,
""
, 0));
Callers
1
TEST
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected