MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / TEST_F

Function TEST_F

tests/test_property_system.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67class PropertyMetaTest : public ::testing::Test {};
68
69TEST_F(PropertyMetaTest, DefaultConstructedMeta) {
70 PropertyMeta meta;
71 EXPECT_TRUE(meta.id.empty());
72 EXPECT_TRUE(meta.name.empty());
73 EXPECT_EQ(meta.type, PropType::Float);
74 EXPECT_EQ(meta.ui_hint, PropUIHint::Default);
75 EXPECT_EQ(meta.flags, PROP_NONE);
76 EXPECT_FALSE(meta.is_readonly());
77 EXPECT_FALSE(meta.is_live_update());
78 EXPECT_FALSE(meta.needs_restart());
79}
80
81TEST_F(PropertyMetaTest, FlagsOperations) {
82 PropertyMeta meta;

Callers

nothing calls this directly

Calls 15

instanceFunction · 0.85
moveFunction · 0.85
is_readonlyMethod · 0.80
is_live_updateMethod · 0.80
needs_restartMethod · 0.80
has_flagMethod · 0.80
getterMethod · 0.80
setterMethod · 0.80
categoryMethod · 0.80
register_groupMethod · 0.80
get_groupMethod · 0.80
get_group_idsMethod · 0.80

Tested by

no test coverage detected