MCPcopy Create free account
hub / github.com/AGenUI/AGenUI / TEST_P

Function TEST_P

tests/cpp/style_parser/edge_insets_parser_test.cpp:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140class EdgeInsetsUnitTest : public ::testing::TestWithParam<UnitCase> {};
141
142TEST_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
150INSTANTIATE_TEST_SUITE_P(Units, EdgeInsetsUnitTest, ::testing::Values(
151 UnitCase{"10px", EdgeInsetUnit::Px, 10.0f},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected