1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
/*
* Copyright 2012, 2013 Thomas Schöps
* Copyright 2012-2021, 2024, 2025 Kai Pastor
*
* This file is part of OpenOrienteering.
*
* OpenOrienteering is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* OpenOrienteering is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenOrienteering. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPENORIENTEERING_FILE_FORMAT_T_H
#define OPENORIENTEERING_FILE_FORMAT_T_H
#include <QObject>
#include <QString>
/**
* @test Tests concerning the file formats, registry, import and export.
*
*/
class FileFormatTest : public QObject
{
Q_OBJECT
private slots:
void initTestCase();
/**
* Tests the MapCoord::toString() implementation which is used for export.
*/
void mapCoordtoString();
void mapCoordtoString_data();
/**
* Tests the MapCoord::fromString() implementation which is used for import.
*/
void mapCoordFromString();
void mapCoordFromString_data();
/**
* Tests filename extension fixup.
*/
void fixupExtensionTest();
void fixupExtensionTest_data();
/**
* Tests FileFormat::understands() implementations.
*/
void understandsTest();
void understandsTest_data();
/**
* Tests FileFormatRegistry::formatForData().
*/
void formatForDataTest();
void formatForDataTest_data();
/**
* Tests that high coordinates are correctly moved to the central region
* of the map.
*
* \see issue #513
*/
void issue_513_high_coordinates();
void issue_513_high_coordinates_data();
/**
* Tests that maps contain the same information before and after saving
* them and loading them again.
*/
void saveAndLoad();
void saveAndLoad_data();
/**
* Tests saving and loading a map which is created in memory and does not go
* through an implicit export-import-cycle before the test.
*/
void pristineMapTest();
/**
* Tests export of geospatial vector data via OGR.
*/
void ogrExportTest();
void ogrExportTest_data();
/**
* Tests the export of KML courses.
*/
void kmlCourseExportTest();
/**
* Tests the export of IOF courses.
*/
void iofCourseExportTest();
/**
* Test the creation of templates.
*/
void importTemplateTest_data();
void importTemplateTest();
/**
* Test text export to OCD.
*/
void ocdTextExportTest_data();
void ocdTextExportTest();
/**
* Test text import from OCD.
*/
void ocdTextImportTest_data();
void ocdTextImportTest();
/**
* Test path import from OCD.
*/
void ocdPathImportTest_data();
void ocdPathImportTest();
/**
* Test OCD area symbol export and import.
*/
void ocdAreaSymbolTest_data();
void ocdAreaSymbolTest();
/**
* Test OCD text symbol export and import.
*/
void ocdTextSymbolTest_data();
void ocdTextSymbolTest();
};
#endif // OPENORIENTEERING_FILE_FORMAT_T_H
|