Skip to content
Permalink
Browse files

Added stubs for all classes in core

git-svn-id: http://svn.osgeo.org/qgis/trunk@5246 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Apr 10, 2006
1 parent 551bd40 commit c464391d6e8d41f3490d1bb5aa1e4fc871d4c80b
Showing with 1,613 additions and 18 deletions.
  1. +237 −6 tests/src/core/Makefile.am
  2. +49 −5 tests/src/core/testqgsapplication.cpp
  3. +29 −0 tests/src/core/testqgsbookmarkitem.cpp
  4. +32 −0 tests/src/core/testqgscolortable.cpp
  5. +44 −0 tests/src/core/testqgscontexthelp.cpp
  6. +24 −0 tests/src/core/testqgscustomsymbol.cpp
  7. +36 −0 tests/src/core/testqgsdatamanager.cpp
  8. +24 −0 tests/src/core/testqgsdatasource.cpp
  9. +72 −0 tests/src/core/testqgsdistancearea.cpp
  10. +36 −0 tests/src/core/testqgsfeatureattribute.cpp
  11. +45 −0 tests/src/core/testqgsfield.cpp
  12. +36 −0 tests/src/core/testqgsgeometryvertexindex.cpp
  13. +32 −0 tests/src/core/testqgslabelattributes.cpp
  14. +48 −0 tests/src/core/testqgsline.cpp
  15. +24 −0 tests/src/core/testqgslinesymbol.cpp
  16. +32 −0 tests/src/core/testqgsmarkercatalogue.cpp
  17. +28 −0 tests/src/core/testqgsnumericsortlistviewitem.cpp
  18. +40 −0 tests/src/core/testqgspluginitem.cpp
  19. +48 −0 tests/src/core/testqgspluginregistry.cpp
  20. +40 −0 tests/src/core/testqgspoint.cpp
  21. +24 −0 tests/src/core/testqgspolygonsymbol.cpp
  22. +28 −0 tests/src/core/testqgsprovidercountcalcevent.cpp
  23. +28 −0 tests/src/core/testqgsproviderextentcalcevent.cpp
  24. +36 −0 tests/src/core/testqgsprovidermetadata.cpp
  25. +56 −0 tests/src/core/testqgsproviderregistry.cpp
  26. +32 −0 tests/src/core/testqgsrangerenderitem.cpp
  27. +28 −0 tests/src/core/testqgsrasterdataprovider.cpp
  28. +72 −0 tests/src/core/testqgsrect.cpp
  29. +28 −0 tests/src/core/testqgsrenderer.cpp
  30. +48 −0 tests/src/core/testqgsrenderitem.cpp
  31. +40 −0 tests/src/core/testqgsscalecalculator.cpp
  32. +40 −0 tests/src/core/testqgssearchstring.cpp
  33. +44 −0 tests/src/core/testqgssearchtreenode.cpp
  34. +81 −7 tests/src/core/testqgssymbol.cpp
  35. +72 −0 tests/src/core/testqgsvectordataprovider.cpp
@@ -9,17 +9,62 @@
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bin_PROGRAMS = testqgsapplication \
testqgsgeometry \
testqgsapplication \
testqgscolortable \
testqgscontexthelp \
testqgscustomsymbol \
testqgsdatamanager \
testqgsdatasource \
testqgsfeature \
testqgsfeatureattribute \
testqgsfield \
testqgssymbol
testqgsgeometry \
testqgsgeometryvertexindex \
testqgsline \
testqgslinesymbol \
testqgsmarkercatalogue \
testqgsnumericsortlistviewitem \
testqgspluginitem \
testqgspluginregistry \
testqgspoint \
testqgspolygonsymbol \
testqgsprovidercountcalcevent \
testqgsproviderextentcalcevent \
testqgsprovidermetadata \
testqgsproviderregistry \
testqgsrangerenderitem \
testqgsrasterdataprovider \
testqgsrect \
testqgsrenderer \
testqgsrenderitem \
testqgsscalecalculator \
testqgssearchstring \
testqgssearchtreenode \
testqgssymbol \
testqgsvectordataprovider
# testqgslabelattributes
# testqgsdistancearea \
# testqgsbookmarkitem

#
# Define some global variables that will be used for building each test
#

GLOBALLDADD = $(QT_LDADD) $(PG_LIB) $(GDAL_LDADD) -lproj ../../../src/core/libqgis_core.la ../../../src/gui/libqgis_gui.la
GLOBALCXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(PG_INC) -I../../../src/core
GLOBALLDADD = $(QT_LDADD) \
$(PG_LIB) \
$(GDAL_LDADD) \
-lproj \
../../../src/core/libqgis_core.la \
../../../src/raster/libqgis_raster.la \
../../../src/gui/libqgis_gui.la
GLOBALCXXFLAGS = $(CXXFLAGS) \
$(EXTRA_CXXFLAGS) \
$(GDAL_CFLAGS) \
$(QT_CXXFLAGS) \
$(PG_INC) \
-I../../../src/raster \
-I../../../src/core \
-I../../../src/gui

#
# Instruction for running the qt4 meta object compiler
@@ -29,10 +74,41 @@ GLOBALCXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(P
$(MOC) -o $@ $<

BUILT_SOURCES = $(testqgsapplication_MOC) \
$(testqgsgeometry_MOC) \
$(testqgsbookmarkitem_MOC) \
$(testqgscolortable_MOC) \
$(testqgscontexthelp_MOC) \
$(testqgscustomsymbol_MOC) \
$(testqgsdatamanager_MOC) \
$(testqgsdatasource_MOC) \
$(testqgsdistancearea_MOC) \
$(testqgsfeatureattribute_MOC) \
$(testqgsfeature_MOC) \
$(testqgsfield_MOC) \
$(testqgssymbol_MOC)
$(testqgsgeometry_MOC) \
$(testqgsgeometryvertexindex_MOC) \
$(testqgslabelattributes_MOC) \
$(testqgsline_MOC) \
$(testqgslinesymbol_MOC) \
$(testqgsmarkercatalogue_MOC) \
$(testqgsnumericsortlistviewitem_MOC) \
$(testqgspluginitem_MOC) \
$(testqgspluginregistry_MOC) \
$(testqgspoint_MOC) \
$(testqgspolygonsymbol_MOC) \
$(testqgsprovidercountcalcevent_MOC) \
$(testqgsproviderextentcalcevent_MOC) \
$(testqgsprovidermetadata_MOC) \
$(testqgsproviderregistry_MOC) \
$(testqgsrangerenderitem_MOC) \
$(testqgsrasterdataprovider_MOC) \
$(testqgsrect_MOC) \
$(testqgsrenderer_MOC) \
$(testqgsrenderitem_MOC) \
$(testqgsscalecalculator_MOC) \
$(testqgssearchstring_MOC) \
$(testqgssearchtreenode_MOC) \
$(testqgssymbol_MOC) \
$(testqgsvectordataprovider_MOC)

CLEANFILES = $(BUILT_SOURCES)

@@ -65,3 +141,158 @@ testqgsgeometry_MOC = testqgsgeometry.moc.cpp
testqgsgeometry_SOURCES = testqgsgeometry.cpp
testqgsgeometry_LDADD = $(GLOBALLDADD)
testqgsgeometry_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsbookmarkitem_MOC = testqgsbookmarkitem.moc.cpp
testqgsbookmarkitem_SOURCES = testqgsbookmarkitem.cpp
testqgsbookmarkitem_LDADD = $(GLOBALLDADD)
testqgsbookmarkitem_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgscolortable_MOC = testqgscolortable.moc.cpp
testqgscolortable_SOURCES = testqgscolortable.cpp
testqgscolortable_LDADD = $(GLOBALLDADD)
testqgscolortable_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgscontexthelp_MOC = testqgscontexthelp.moc.cpp
testqgscontexthelp_SOURCES = testqgscontexthelp.cpp
testqgscontexthelp_LDADD = $(GLOBALLDADD)
testqgscontexthelp_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgscustomsymbol_MOC = testqgscustomsymbol.moc.cpp
testqgscustomsymbol_SOURCES = testqgscustomsymbol.cpp
testqgscustomsymbol_LDADD = $(GLOBALLDADD)
testqgscustomsymbol_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsdatamanager_MOC = testqgsdatamanager.moc.cpp
testqgsdatamanager_SOURCES = testqgsdatamanager.cpp
testqgsdatamanager_LDADD = $(GLOBALLDADD)
testqgsdatamanager_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsdatasource_MOC = testqgsdatasource.moc.cpp
testqgsdatasource_SOURCES = testqgsdatasource.cpp
testqgsdatasource_LDADD = $(GLOBALLDADD)
testqgsdatasource_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsdistancearea_MOC = testqgsdistancearea.moc.cpp
testqgsdistancearea_SOURCES = testqgsdistancearea.cpp
testqgsdistancearea_LDADD = $(GLOBALLDADD)
testqgsdistancearea_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsfeatureattribute_MOC = testqgsfeatureattribute.moc.cpp
testqgsfeatureattribute_SOURCES = testqgsfeatureattribute.cpp
testqgsfeatureattribute_LDADD = $(GLOBALLDADD)
testqgsfeatureattribute_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsgeometryvertexindex_MOC = testqgsgeometryvertexindex.moc.cpp
testqgsgeometryvertexindex_SOURCES = testqgsgeometryvertexindex.cpp
testqgsgeometryvertexindex_LDADD = $(GLOBALLDADD)
testqgsgeometryvertexindex_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgslabelattributes_MOC = testqgslabelattributes.moc.cpp
testqgslabelattributes_SOURCES = testqgslabelattributes.cpp
testqgslabelattributes_LDADD = $(GLOBALLDADD)
testqgslabelattributes_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsline_MOC = testqgsline.moc.cpp
testqgsline_SOURCES = testqgsline.cpp
testqgsline_LDADD = $(GLOBALLDADD)
testqgsline_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgslinesymbol_MOC = testqgslinesymbol.moc.cpp
testqgslinesymbol_SOURCES = testqgslinesymbol.cpp
testqgslinesymbol_LDADD = $(GLOBALLDADD)
testqgslinesymbol_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsmarkercatalogue_MOC = testqgsmarkercatalogue.moc.cpp
testqgsmarkercatalogue_SOURCES = testqgsmarkercatalogue.cpp
testqgsmarkercatalogue_LDADD = $(GLOBALLDADD)
testqgsmarkercatalogue_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsnumericsortlistviewitem_MOC = testqgsnumericsortlistviewitem.moc.cpp
testqgsnumericsortlistviewitem_SOURCES = testqgsnumericsortlistviewitem.cpp
testqgsnumericsortlistviewitem_LDADD = $(GLOBALLDADD)
testqgsnumericsortlistviewitem_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgspluginitem_MOC = testqgspluginitem.moc.cpp
testqgspluginitem_SOURCES = testqgspluginitem.cpp
testqgspluginitem_LDADD = $(GLOBALLDADD)
testqgspluginitem_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgspluginregistry_MOC = testqgspluginregistry.moc.cpp
testqgspluginregistry_SOURCES = testqgspluginregistry.cpp
testqgspluginregistry_LDADD = $(GLOBALLDADD)
testqgspluginregistry_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgspoint_MOC = testqgspoint.moc.cpp
testqgspoint_SOURCES = testqgspoint.cpp
testqgspoint_LDADD = $(GLOBALLDADD)
testqgspoint_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgspolygonsymbol_MOC = testqgspolygonsymbol.moc.cpp
testqgspolygonsymbol_SOURCES = testqgspolygonsymbol.cpp
testqgspolygonsymbol_LDADD = $(GLOBALLDADD)
testqgspolygonsymbol_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsprovidercountcalcevent_MOC = testqgsprovidercountcalcevent.moc.cpp
testqgsprovidercountcalcevent_SOURCES = testqgsprovidercountcalcevent.cpp
testqgsprovidercountcalcevent_LDADD = $(GLOBALLDADD)
testqgsprovidercountcalcevent_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsproviderextentcalcevent_MOC = testqgsproviderextentcalcevent.moc.cpp
testqgsproviderextentcalcevent_SOURCES = testqgsproviderextentcalcevent.cpp
testqgsproviderextentcalcevent_LDADD = $(GLOBALLDADD)
testqgsproviderextentcalcevent_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsprovidermetadata_MOC = testqgsprovidermetadata.moc.cpp
testqgsprovidermetadata_SOURCES = testqgsprovidermetadata.cpp
testqgsprovidermetadata_LDADD = $(GLOBALLDADD)
testqgsprovidermetadata_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsproviderregistry_MOC = testqgsproviderregistry.moc.cpp
testqgsproviderregistry_SOURCES = testqgsproviderregistry.cpp
testqgsproviderregistry_LDADD = $(GLOBALLDADD)
testqgsproviderregistry_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsrangerenderitem_MOC = testqgsrangerenderitem.moc.cpp
testqgsrangerenderitem_SOURCES = testqgsrangerenderitem.cpp
testqgsrangerenderitem_LDADD = $(GLOBALLDADD)
testqgsrangerenderitem_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsrasterdataprovider_MOC = testqgsrasterdataprovider.moc.cpp
testqgsrasterdataprovider_SOURCES = testqgsrasterdataprovider.cpp
testqgsrasterdataprovider_LDADD = $(GLOBALLDADD)
testqgsrasterdataprovider_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsrect_MOC = testqgsrect.moc.cpp
testqgsrect_SOURCES = testqgsrect.cpp
testqgsrect_LDADD = $(GLOBALLDADD)
testqgsrect_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsrenderer_MOC = testqgsrenderer.moc.cpp
testqgsrenderer_SOURCES = testqgsrenderer.cpp
testqgsrenderer_LDADD = $(GLOBALLDADD)
testqgsrenderer_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsrenderitem_MOC = testqgsrenderitem.moc.cpp
testqgsrenderitem_SOURCES = testqgsrenderitem.cpp
testqgsrenderitem_LDADD = $(GLOBALLDADD)
testqgsrenderitem_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsscalecalculator_MOC = testqgsscalecalculator.moc.cpp
testqgsscalecalculator_SOURCES = testqgsscalecalculator.cpp
testqgsscalecalculator_LDADD = $(GLOBALLDADD)
testqgsscalecalculator_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgssearchstring_MOC = testqgssearchstring.moc.cpp
testqgssearchstring_SOURCES = testqgssearchstring.cpp
testqgssearchstring_LDADD = $(GLOBALLDADD)
testqgssearchstring_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgssearchtreenode_MOC = testqgssearchtreenode.moc.cpp
testqgssearchtreenode_SOURCES = testqgssearchtreenode.cpp
testqgssearchtreenode_LDADD = $(GLOBALLDADD)
testqgssearchtreenode_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsvectordataprovider_MOC = testqgsvectordataprovider.moc.cpp
testqgsvectordataprovider_SOURCES = testqgsvectordataprovider.cpp
testqgsvectordataprovider_LDADD = $(GLOBALLDADD)
testqgsvectordataprovider_CXXFLAGS = $(GLOBALCXXFLAGS)
@@ -9,11 +9,55 @@ class TestQgsApplication: public QObject
{
Q_OBJECT;
private slots:
void authorsFilePath()
{
QString myPath = QgsApplication::authorsFilePath();
QVERIFY(!myPath.isNull());
}
void QgsApplicationQgsApplication()
{

};
void QgsApplicationselectTheme()
{

};
void QgsApplicationauthorsFilePath()
{

};
void QgsApplicationdeveloperPath()
{

};
void QgsApplicationhelpAppPath()
{

};
void QgsApplicationi18nPath()
{

};
void QgsApplicationqgisMasterDbFilePath()
{

};
void QgsApplicationqgisSettingsDirPath()
{

};
void QgsApplicationqgisUserDbFilePath()
{

};
void QgsApplicationsplashPath()
{

};
void QgsApplicationsrsDbFilePath()
{

};
void QgsApplicationsvgPath()
{

};

};

QTEST_MAIN(TestQgsApplication)
@@ -0,0 +1,29 @@
#include <QtTest>
#include <QObject>
#include <QString>
#include <QObject>
//header for class being tested
#include <qgsbookmarkitem.h>
//qgis related headers
#include <qgsrect.h>
class TestQgsBookmarkItem: public QObject
{
Q_OBJECT;
private slots:
void QgsBookmarkItemQgsBookmarkItem()
{

};
void QgsBookmarkItemstore()
{

};

};

QTEST_MAIN(TestQgsBookmarkItem)
#include "testqgsbookmarkitem.moc.cpp"




@@ -0,0 +1,32 @@
#include <QtTest>
#include <QObject>
#include <QString>
#include <QObject>
//header for class being tested
#include <qgscolortable.h>

class TestQgsColorTable: public QObject
{
Q_OBJECT;
private slots:
void QgsColorTableQgsColorTable()
{

};
void QgsColorTableadd()
{

};
void QgsColorTableclear()
{

};

};

QTEST_MAIN(TestQgsColorTable)
#include "testqgscolortable.moc.cpp"




0 comments on commit c464391

Please sign in to comment.
You can’t perform that action at this time.