MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / TEST

Function TEST

pj_widgets/tests/toggle_switch_test.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace {
13
14TEST(ToggleSwitchTest, TextDefaultsEmpty) {
15 PJ::ToggleSwitch sw;
16 EXPECT_TRUE(sw.text().isEmpty());
17 EXPECT_EQ(sw.labelSide(), PJ::ToggleSwitch::LabelSide::Right);
18}
19
20TEST(ToggleSwitchTest, TextAndLabelSideRoundTrip) {
21 PJ::ToggleSwitch sw;

Callers

nothing calls this directly

Calls 15

labelSideMethod · 0.80
setLabelSideMethod · 0.80
heightMethod · 0.80
horizontalAdvanceMethod · 0.80
QSizeClass · 0.50
QPointClass · 0.50
isEmptyMethod · 0.45
textMethod · 0.45
setTextMethod · 0.45
sizeHintMethod · 0.45
minimumSizeHintMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected