File indexing completed on 2024-05-05 03:48:41

0001 /*
0002     File                 : NetCDFFilterTest.h
0003     Project              : LabPlot
0004     Description          : Tests for the NetCDF 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 NETCDFFILTERTEST_H
0011 #define NETCDFFILTERTEST_H
0012 
0013 #include "../../CommonTest.h"
0014 #include <QtTest>
0015 
0016 class NetCDFFilterTest : public CommonTest {
0017     Q_OBJECT
0018 
0019 private Q_SLOTS:
0020     void importFile1(); // classis NetCDF
0021     void importFile2(); // HDF5
0022     void importFile3(); // simple file
0023 
0024     void benchDoubleImport_data();
0025     // this is called multiple times (warm-up of BENCHMARK)
0026     // see https://stackoverflow.com/questions/36916962/qtest-executes-test-case-twic
0027     void benchDoubleImport();
0028     void benchDoubleImport_cleanup(); // delete data
0029 
0030 private:
0031     QString benchDataFileName;
0032     const size_t lines = 1e6;
0033     static const int paths = 5;
0034 };
0035 #endif