File indexing completed on 2024-05-05 07:47:41

0001 /*
0002     File                 : DatasetsTest.h
0003     Project              : LabPlot
0004     Description          : Tests for Dataset related features
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2019 Kovacs Ferencz <kferike98@gmail.com>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 #ifndef DATASETSTEST_H
0011 #define DATASETSTEST_H
0012 
0013 #include <QtTest>
0014 
0015 class DatasetsTest : public QObject {
0016     Q_OBJECT
0017 
0018 private Q_SLOTS:
0019     void initTestCase();
0020 
0021     // Test processing metadata files.
0022     void testCategories();
0023     //  void testSubcategories();
0024     //  void testDatasets();
0025 
0026     // Test processing and downloading dataset
0027     //  void testProcessDataset();
0028 
0029     // Test adding new datasets to the existing collection
0030     //  void testNewCollection();
0031     //  void testNewCategory();
0032     //  void testNewSubcategory();
0033     //  void testNewDataset();
0034 
0035 private:
0036     void copyFiles();
0037     void removeFiles();
0038 
0039     QString m_dataDir;
0040     QString m_jsonDir;
0041 };
0042 
0043 #endif