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
|
/**
*
* This file is part of Tulip (www.tulip-software.org)
*
* Authors: David Auber and the Tulip development Team
* from LaBRI, University of Bordeaux
*
* Tulip is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* Tulip 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.
*
*/
#ifndef TLPPLUGINSTEST
#define TLPPLUGINSTEST
#include <string>
#include <cppunit/TestFixture.h>
#include <cppunit/TestSuite.h>
#include <cppunit/extensions/HelperMacros.h>
#include <tulip/Graph.h>
class BasicPluginsTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(BasicPluginsTest);
CPPUNIT_TEST(testImportCompleteGraph);
CPPUNIT_TEST(testImportCompleteTree);
CPPUNIT_TEST(testImportRandomGraph);
CPPUNIT_TEST(testImportRandomTree);
CPPUNIT_TEST(testImportRandomTreeGeneral);
CPPUNIT_TEST(testImportRandomSimpleGraph);
CPPUNIT_TEST(testImportPlanarGraph);
CPPUNIT_TEST(testImportGrid);
CPPUNIT_TEST(testImportGridApproximation);
CPPUNIT_TEST(testImportDot);
CPPUNIT_TEST(testImportGEXF);
CPPUNIT_TEST(testImportGml);
CPPUNIT_TEST(testExportGml);
CPPUNIT_TEST(testImportTLP);
CPPUNIT_TEST(testExportTLP);
CPPUNIT_TEST(testExportImportTLPB);
CPPUNIT_TEST(testExportImportJSON);
CPPUNIT_TEST(testImportFileSystem);
CPPUNIT_TEST(testImportAdjacencyMatrix);
CPPUNIT_TEST(testImportPajek);
CPPUNIT_TEST(testImportUCINET);
CPPUNIT_TEST(testMetricColorMapping);
CPPUNIT_TEST(testLoopSelection);
CPPUNIT_TEST(testMultipleEdgeSelection);
CPPUNIT_TEST(testReachableSubGraphSelection);
CPPUNIT_TEST(testSpanningDagSelection);
CPPUNIT_TEST(testSpanningTreeSelection);
CPPUNIT_TEST(testAutoSize);
CPPUNIT_TEST(testMetricSizeMapping);
CPPUNIT_TEST(testEqualValueClustering);
CPPUNIT_TEST(testHierarchicalClustering);
CPPUNIT_TEST(testQuotientClustering);
CPPUNIT_TEST(testStrengthClustering);
CPPUNIT_TEST_SUITE_END();
private:
tlp::Graph *graph;
public:
void setUp();
void tearDown();
void initializeGraph(const std::string& type);
template<typename PropType>
bool computeProperty(const std::string &algorithm,
const std::string& graphType = "Planar Graph",
PropType* prop = NULL);
void testImportCompleteGraph();
void testImportCompleteTree();
void testImportRandomGraph();
void testImportRandomTree();
void testImportRandomTreeGeneral();
void testImportRandomSimpleGraph();
void testImportPlanarGraph();
void testImportGrid();
void testImportGridApproximation();
void testImportDot();
void testImportGEXF();
void testImportGml();
void testExportGml();
void testImportTLP();
void testExportTLP();
void testExportImportTLPB();
void testExportImportJSON();
void testImportFileSystem();
void testImportAdjacencyMatrix();
void testImportPajek();
void testImportUCINET();
void testMetricColorMapping();
void testLoopSelection();
void testMultipleEdgeSelection();
void testReachableSubGraphSelection();
void testSpanningDagSelection();
void testSpanningTreeSelection();
void testAutoSize();
void testFitToLabel();
void testMetricSizeMapping();
void testEqualValueClustering();
void testHierarchicalClustering();
void testQuotientClustering();
void testStrengthClustering();
};
#endif
|