Skip to content
Permalink
Browse files

Added unit test for testqgsfeature.cpp (stubs only thus far)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5237 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Apr 9, 2006
1 parent 5412764 commit 2df3139a1e8441c221ece2b85e6f9fc184afb802
Showing with 175 additions and 0 deletions.
  1. +7 −0 tests/src/core/Makefile.am
  2. +168 −0 tests/src/core/testqgsfeature.cpp
@@ -9,6 +9,7 @@
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bin_PROGRAMS = testqgsapplication \
testqgsfeature \
testqgsfield \
testqgssymbol

@@ -27,6 +28,7 @@ GLOBALCXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(P
$(MOC) -o $@ $<

BUILT_SOURCES = $(testqgsapplication_MOC) \
$(testqgsfeature_MOC) \
$(testqgsfield_MOC) \
$(testqgssymbol_MOC)

@@ -51,3 +53,8 @@ testqgsfield_MOC = testqgsfield.moc.cpp
testqgsfield_SOURCES = testqgsfield.cpp
testqgsfield_LDADD = $(GLOBALLDADD)
testqgsfield_CXXFLAGS = $(GLOBALCXXFLAGS)

testqgsfeature_MOC = testqgsfeature.moc.cpp
testqgsfeature_SOURCES = testqgsfeature.cpp
testqgsfeature_LDADD = $(GLOBALLDADD)
testqgsfeature_CXXFLAGS = $(GLOBALCXXFLAGS)
@@ -0,0 +1,168 @@
#include <QtTest>
#include <QObject>
#include <QString>
#include <QObject>
//header for class being tested
#include <qgsfeature.h>

class TestQgsFeature: public QObject
{
Q_OBJECT;
private slots:
void QgsFeatureQgsFeature()
{

};
void QgsFeaturefeatureId()
{

};
void QgsFeatureattributeMap()
{

};
void QgsFeatureaddAttribute()
{

};
void QgsFeaturedeleteAttribute()
{

};
void QgsFeaturechangeAttributeValue()
{

};
void QgsFeaturechangeAttributeName()
{

};
void QgsFeaturefields()
{

};
void QgsFeaturegeometry()
{

};
void QgsFeaturegeometryAndOwnership()
{

};
void QgsFeaturegetGeometry()
{

};
void QgsFeaturegetCommittedGeometry()
{

};
void QgsFeaturegetModifiedGeometry()
{

};
void QgsFeaturegetGeometrySize()
{

};
void QgsFeaturegetCommittedGeometrySize()
{

};
void QgsFeaturegetModifiedGeometrySize()
{

};
void QgsFeaturewellKnownText()
{

};
void QgsFeaturesetFeatureId()
{

};
void QgsFeaturetypeName()
{

};
void QgsFeaturesetGeometry()
{

};
void QgsFeaturesetGeometryAndOwnership()
{

};
void QgsFeaturesetModifiedGeometry()
{

};
void QgsFeatureinsertVertexBefore()
{

};
void QgsFeaturemoveVertexAt()
{

};
void QgsFeaturevertexAt()
{

};
void QgsFeatureisValid()
{

};
void QgsFeaturesetValid()
{

};
void QgsFeatureisDirty()
{

};
void QgsFeatureresetDirty()
{

};
void QgsFeatureintersects()
{

};
void QgsFeatureexportToWKT()
{

};
void QgsFeatureclosestVertex()
{

};
void QgsFeaturedistanceSquaredPointToSegment()
{

};
void QgsFeatureclosestSegmentWithContext()
{

};
void QgsFeatureclosestSegment()
{

};
void QgsFeatureboundingBox()
{

};
void QgsFeaturegeosGeometry()
{

};

};

QTEST_MAIN(TestQgsFeature)
#include "testqgsfeature.moc.cpp"




0 comments on commit 2df3139

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