| 140 | class EdgeInsetsUnitTest : public ::testing::TestWithParam<UnitCase> {}; |
| 141 | |
| 142 | TEST_P(EdgeInsetsUnitTest, ParsesCorrectly) { |
| 143 | auto [input, expectedUnit, expectedVal] = GetParam(); |
| 144 | EdgeInsets r; |
| 145 | ASSERT_TRUE(EdgeInsetsParser::parse(input, r)); |
| 146 | EXPECT_EQ(r.top.unit, expectedUnit); |
| 147 | EXPECT_FLOAT_EQ(r.top.value, expectedVal); |
| 148 | } |
| 149 | |
| 150 | INSTANTIATE_TEST_SUITE_P(Units, EdgeInsetsUnitTest, ::testing::Values( |
| 151 | UnitCase{"10px", EdgeInsetUnit::Px, 10.0f}, |
nothing calls this directly
no outgoing calls
no test coverage detected