------------------------------------------------------------------------------------------------
| 72 | |
| 73 | // ------------------------------------------------------------------------------------------------ |
| 74 | TEST_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 | // ------------------------------------------------------------------------------------------------ |
| 91 | TEST_F(SharedPPDataTest, testPropertyPointer) |
nothing calls this directly
no test coverage detected