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

Method statisticsText

tests/backend/Column/ColumnTest.cpp:492–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492void ColumnTest::statisticsText() {
493 Column c(QStringLiteral("Text column"), Column::ColumnMode::Text);
494 c.setTextAt(0, QStringLiteral("yes"));
495 c.setTextAt(1, QStringLiteral("no"));
496 c.setTextAt(2, QStringLiteral("no"));
497 c.setTextAt(3, QStringLiteral("yes"));
498 c.setTextAt(4, QStringLiteral("yes"));
499
500 const auto& stats = c.statistics();
501
502 QCOMPARE(stats.size, 5);
503 QCOMPARE(stats.unique, 2);
504}
505
506void ColumnTest::statisticsMaskValues() {
507 Project project;

Callers

nothing calls this directly

Calls 2

statisticsMethod · 0.80
setTextAtMethod · 0.45

Tested by

no test coverage detected