MCPcopy Create free account
hub / github.com/assimp/assimp / TEST_F

Function TEST_F

test/unit/utSharedPPData.cpp:74–88  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

72
73// ------------------------------------------------------------------------------------------------
74TEST_F(SharedPPDataTest, testPODProperty)
75{
76 int i = 5;
77 shared->AddProperty("test",i);
78 int o = 0;
79 EXPECT_TRUE(shared->GetProperty("test",o));
80 EXPECT_EQ(5, o);
81 EXPECT_FALSE(shared->GetProperty("test2",o));
82 EXPECT_EQ(5, o);
83
84 float f = 12.f, m = -98.7654f;
85 shared->AddProperty("test",f);
86 EXPECT_TRUE(shared->GetProperty("test",m));
87 EXPECT_EQ(12.f, m);
88}
89
90// ------------------------------------------------------------------------------------------------
91TEST_F(SharedPPDataTest, testPropertyPointer)

Callers

nothing calls this directly

Calls 3

GetPropertyMethod · 0.80
AddPropertyMethod · 0.45
RemovePropertyMethod · 0.45

Tested by

no test coverage detected