MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / TEST

Function TEST

Tests/config/rapidjsonhelper.cpp:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91TEST(RapidJSONHelper_TypeChecks, ReturnsTrueOnSameType)
92{
93 for (const auto type : types)
94 {
95 ASSERT_TRUE(rjh::IsType(type, type));
96 ASSERT_NO_THROW(rjh::EnsureType(type, type, testObj));
97 }
98
99 for (const auto type : boolTypes)
100 {
101 ASSERT_TRUE(rjh::IsType(type, type));
102 ASSERT_NO_THROW(rjh::EnsureType(type, type, testObj));
103 }
104}
105
106TEST(RapidJSONHelper_TypeChecks, ReturnsTrueOnMismatchingBoolTypes)
107{

Callers

nothing calls this directly

Calls 10

IsTypeFunction · 0.85
EnsureTypeFunction · 0.85
ValueToStringViewFunction · 0.85
StringViewToValueFunction · 0.85
SameStringClass · 0.85
WriteKeyFunction · 0.85
WriteStringFunction · 0.85
SerializeFunction · 0.85
TestEnumNameFunction · 0.85
DeserializeFunction · 0.85

Tested by

no test coverage detected