File indexing completed on 2024-10-13 06:30:09
0001 /* 0002 File : BinaryFilterTest.h 0003 Project : LabPlot 0004 Description : Tests for the binary filter 0005 -------------------------------------------------------------------- 0006 SPDX-FileCopyrightText: 2022 Stefan Gerlach <stefan.gerlach@uni.kn> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 #ifndef BINARYFILTERTEST_H 0011 #define BINARYFILTERTEST_H 0012 0013 #include "../../CommonTest.h" 0014 #include <QtTest> 0015 0016 class BinaryFilterTest : public CommonTest { 0017 Q_OBJECT 0018 0019 private Q_SLOTS: 0020 void importInt8(); 0021 void importInt16BE(); 0022 void importInt32LE(); 0023 void importInt32BE(); 0024 void importInt64BE(); 0025 0026 void importFloatBE(); 0027 void importDoubleBE(); 0028 void importDoubleLE(); 0029 0030 void importDoubleMatrixBE(); 0031 0032 void benchIntImport_data(); 0033 // this is called multiple times (warm-up of BENCHMARK) 0034 // see https://stackoverflow.com/questions/36916962/qtest-executes-test-case-twic 0035 void benchIntImport(); 0036 void benchIntImport_cleanup(); // delete data 0037 0038 void benchDoubleImport_data(); 0039 // this is called multiple times (warm-up of BENCHMARK) 0040 // see https://stackoverflow.com/questions/36916962/qtest-executes-test-case-twic 0041 void benchDoubleImport(); 0042 void benchDoubleImport_cleanup(); // delete data 0043 private: 0044 QString benchDataFileName; 0045 const size_t lines = 1e6; 0046 static const int paths = 5; 0047 }; 0048 #endif