Skip to content

Commit

Permalink
Added unit test for testqgsfeature.cpp (stubs only thus far)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5237 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Apr 9, 2006
1 parent 5412764 commit 2df3139
Show file tree
Hide file tree
Showing 2 changed files with 175 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/src/core/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bin_PROGRAMS = testqgsapplication \
testqgsfeature \
testqgsfield \
testqgssymbol

Expand All @@ -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)

Expand All @@ -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)
168 changes: 168 additions & 0 deletions tests/src/core/testqgsfeature.cpp
Original file line number Diff line number Diff line change
@@ -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.