File indexing completed on 2024-04-14 14:13:54

0001 /***************************************************************************
0002     File                 : AsciiFilterTest.h
0003     Project              : LabPlot
0004     Description          : Tests for the ascii filter
0005     --------------------------------------------------------------------
0006     Copyright            : (C) 2017 Alexander Semke (alexander.semke@web.de)
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *  This program is free software; you can redistribute it and/or modify   *
0012  *  it under the terms of the GNU General Public License as published by   *
0013  *  the Free Software Foundation; either version 2 of the License, or      *
0014  *  (at your option) any later version.                                    *
0015  *                                                                         *
0016  *  This program is distributed in the hope that it will be useful,        *
0017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
0018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
0019  *  GNU General Public License for more details.                           *
0020  *                                                                         *
0021  *   You should have received a copy of the GNU General Public License     *
0022  *   along with this program; if not, write to the Free Software           *
0023  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
0024  *   Boston, MA  02110-1301  USA                                           *
0025  *                                                                         *
0026  ***************************************************************************/
0027 #ifndef ASCIIFILTERTEST_H
0028 #define ASCIIFILTERTEST_H
0029 
0030 #include <QtTest>
0031 
0032 class AsciiFilterTest : public QObject {
0033     Q_OBJECT
0034 
0035 private slots:
0036     void initTestCase();
0037 
0038     //empty and sparse files
0039     void testEmptyFileAppend();
0040     void testEmptyFilePrepend();
0041     void testEmptyFileReplace();
0042 
0043     void testEmptyLines01();
0044 
0045     void testSparseFile01();
0046     void testSparseFile02();
0047     void testSparseFile03();
0048 
0049     //header handling
0050     void testHeader01();
0051     void testHeader02();
0052     void testHeader03();
0053     void testHeader04();
0054     void testHeader05();
0055     void testHeader06();
0056     void testHeader07();
0057     void testHeader08();
0058 
0059     //read ranges
0060     void testColumnRange00();
0061     void testColumnRange01();
0062     void testColumnRange02();
0063     void testColumnRange03();
0064     void testColumnRange04();
0065     void testColumnRange05();
0066     void testColumnRange06();
0067 
0068     void testRowRange00();
0069     void testRowRange01();
0070     void testRowRange02();
0071 
0072     void testRowColumnRange00();
0073 
0074     //different separators
0075 
0076     //qouted strings
0077     void testQuotedStrings00();
0078     void testQuotedStrings01();
0079     void testQuotedStrings02();
0080     void testQuotedStrings03();
0081 
0082     //different locales
0083 
0084     //handling of NANs
0085 
0086     //automatically skip comments
0087     void testComments00();
0088     void testComments01();
0089     void testComments02();
0090 
0091     //datetime data
0092     void testDateTime00();
0093 };
0094 #endif