Skip to content

Commit

Permalink
Add missing constness in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Jan 5, 2025
1 parent 8342529 commit 53fa0de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/ExportXlsxTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void ExportXlsxTest::exportZip(const QAbstractItemView& view,

void ExportXlsxTest::initTestCase() {}

void ExportXlsxTest::testExportingEmptyTable()
void ExportXlsxTest::testExportingEmptyTable() const
{
TestTableModel model(0, 0);
QTableView view;
Expand All @@ -56,7 +56,7 @@ void ExportXlsxTest::testExportingEmptyTable()
compareWorkSheets(exportedZip, emptySheetData_);
}

void ExportXlsxTest::testExportingHeadersOnly()
void ExportXlsxTest::testExportingHeadersOnly() const
{
TestTableModel model(3, 0);
QTableView view;
Expand All @@ -69,7 +69,7 @@ void ExportXlsxTest::testExportingHeadersOnly()
compareWorkSheets(exportedZip, headersOnlySheetData_);
}

void ExportXlsxTest::testExportingSimpleTable()
void ExportXlsxTest::testExportingSimpleTable() const
{
TestTableModel model(3, 3);
QTableView view;
Expand All @@ -82,7 +82,7 @@ void ExportXlsxTest::testExportingSimpleTable()
compareWorkSheets(exportedZip, tableSheetData_);
}

void ExportXlsxTest::testExportingViewWithMultiSelection()
void ExportXlsxTest::testExportingViewWithMultiSelection() const
{
TestTableModel model(3, 3);
QTableView view;
Expand Down
8 changes: 4 additions & 4 deletions tests/ExportXlsxTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ class ExportXlsxTest : public QObject
private Q_SLOTS:
void initTestCase();

void testExportingEmptyTable();
void testExportingEmptyTable() const;

void testExportingHeadersOnly();
void testExportingHeadersOnly() const;

void testExportingSimpleTable();
void testExportingSimpleTable() const;

void testExportingViewWithMultiSelection();
void testExportingViewWithMultiSelection() const;

void benchmark_data();

Expand Down

0 comments on commit 53fa0de

Please sign in to comment.