mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Added unit test for testqgsfeature.cpp (stubs only thus far)
git-svn-id: http://svn.osgeo.org/qgis/trunk@5237 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
686fdd4eb9
commit
72ec5c0cbf
@ -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)
|
||||
|
168
tests/src/core/testqgsfeature.cpp
Normal file
168
tests/src/core/testqgsfeature.cpp
Normal file
@ -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"
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user