• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • Tests
testcsvparser.h
Go to the documentation of this file.
1 /***************************************************************************
2  TestCSVParser.h - K Desktop Planetarium
3  -------------------
4  begin : 2012/23/07
5  copyright : (C) 2012 by Rishab Arora
6  email : ra.rishab@gmail.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 
19 #ifndef TESTCSVPARSER_H
20 #define TESTCSVPARSER_H
21 #include <QtTest/QtTest>
22 #include <KDebug>
23 #include "datahandlers/ksparser.h"
24 #include "kstars/ksfilereader.h"
25 
26 
27 class TestCSVParser: public QObject {
28  Q_OBJECT
29  public:
30  TestCSVParser();
31  ~TestCSVParser();
32  private slots:
33  void initTestCase();
34  void cleanupTestCase();
35  void CSVMixedInputs();
36  void CSVQuotesInQuotes();
37  void CSVEmptyRow();
38  void CSVNoRow();
39  void CSVIgnoreHasNextRow();
40  void CSVReadMissingFile();
41 
42  private:
43  QStringList test_cases_;
44  QList< QPair<QString, KSParser::DataTypes> > sequence_;
45  QString test_file_name_;
46  KSParser *test_parser_;
47 };
48 
49 #endif // TESTKSPARSER_H
KSParser
Generic class for text file parsers used in KStars.
Definition: ksparser.h:49
QObject
TestCSVParser
Definition: testcsvparser.h:27
ksfilereader.h
TestCSVParser::~TestCSVParser
~TestCSVParser()
Definition: testcsvparser.cpp:117
ksparser.h
TestCSVParser::TestCSVParser
TestCSVParser()
Definition: testcsvparser.cpp:31
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal