| 490 | } |
| 491 | |
| 492 | void 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 | |
| 506 | void ColumnTest::statisticsMaskValues() { |
| 507 | Project project; |
nothing calls this directly
no test coverage detected