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

Function TEST_F

tests/unittests/core/export/interactivehtmlbomtest.cpp:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 ******************************************************************************/
44
45TEST_F(InteractiveHtmlBomTest, testViewModeSerialization) {
46 for (auto x : {
47 InteractiveHtmlBom::ViewMode::BomOnly,
48 InteractiveHtmlBom::ViewMode::LeftRight,
49 InteractiveHtmlBom::ViewMode::TopBottom,
50 }) {
51 const auto node = serialize(x);
52 const auto value = deserialize<InteractiveHtmlBom::ViewMode>(*node);
53 EXPECT_EQ(x, value);
54 }
55}
56
57TEST_F(InteractiveHtmlBomTest, testHighlightPin1ModeSerialization) {
58 for (auto x : {

Callers

nothing calls this directly

Calls 13

QStringClass · 0.85
setFieldsMethod · 0.80
addDrawingMethod · 0.80
addTrackMethod · 0.80
addPlaneFragmentMethod · 0.80
addFootprintMethod · 0.80
addBomRowMethod · 0.80
generateHtmlMethod · 0.80
serializeFunction · 0.50
PointClass · 0.50
AngleClass · 0.50
addViaMethod · 0.45

Tested by

no test coverage detected