MCPcopy Create free account
hub / github.com/KDE/labplot / testRowCountValueLabels

Method testRowCountValueLabels

tests/backend/Column/ColumnTest.cpp:1979–1988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1977}
1978
1979void ColumnTest::testRowCountValueLabels() {
1980 Column c(QStringLiteral("Test"), Column::ColumnMode::Double);
1981 c.addValueLabel(-2., QStringLiteral("Status 1"));
1982 c.addValueLabel(-1., QStringLiteral("Status 2"));
1983 c.addValueLabel(4., QStringLiteral("Status 3"));
1984 c.addValueLabel(5., QStringLiteral("Status 2"));
1985 c.addValueLabel(6., QStringLiteral("Status 3"));
1986
1987 QCOMPARE(c.valueLabelsCount(-1., 5.), 3);
1988}
1989
1990void ColumnTest::testRowCountValueLabelsDateTime() {
1991 Column c(QStringLiteral("Test"), Column::ColumnMode::DateTime);

Callers

nothing calls this directly

Calls 2

addValueLabelMethod · 0.45
valueLabelsCountMethod · 0.45

Tested by

no test coverage detected