Skip to content

Commit 72ec5c0

Browse files
author
timlinux
committed
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
1 parent 686fdd4 commit 72ec5c0

File tree

2 files changed

+175
-0
lines changed

2 files changed

+175
-0
lines changed

tests/src/core/Makefile.am

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010

1111
bin_PROGRAMS = testqgsapplication \
12+
testqgsfeature \
1213
testqgsfield \
1314
testqgssymbol
1415

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

2930
BUILT_SOURCES = $(testqgsapplication_MOC) \
31+
$(testqgsfeature_MOC) \
3032
$(testqgsfield_MOC) \
3133
$(testqgssymbol_MOC)
3234

@@ -51,3 +53,8 @@ testqgsfield_MOC = testqgsfield.moc.cpp
5153
testqgsfield_SOURCES = testqgsfield.cpp
5254
testqgsfield_LDADD = $(GLOBALLDADD)
5355
testqgsfield_CXXFLAGS = $(GLOBALCXXFLAGS)
56+
57+
testqgsfeature_MOC = testqgsfeature.moc.cpp
58+
testqgsfeature_SOURCES = testqgsfeature.cpp
59+
testqgsfeature_LDADD = $(GLOBALLDADD)
60+
testqgsfeature_CXXFLAGS = $(GLOBALCXXFLAGS)

tests/src/core/testqgsfeature.cpp

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
#include <QtTest>
2+
#include <QObject>
3+
#include <QString>
4+
#include <QObject>
5+
//header for class being tested
6+
#include <qgsfeature.h>
7+
8+
class TestQgsFeature: public QObject
9+
{
10+
Q_OBJECT;
11+
private slots:
12+
void QgsFeatureQgsFeature()
13+
{
14+
15+
};
16+
void QgsFeaturefeatureId()
17+
{
18+
19+
};
20+
void QgsFeatureattributeMap()
21+
{
22+
23+
};
24+
void QgsFeatureaddAttribute()
25+
{
26+
27+
};
28+
void QgsFeaturedeleteAttribute()
29+
{
30+
31+
};
32+
void QgsFeaturechangeAttributeValue()
33+
{
34+
35+
};
36+
void QgsFeaturechangeAttributeName()
37+
{
38+
39+
};
40+
void QgsFeaturefields()
41+
{
42+
43+
};
44+
void QgsFeaturegeometry()
45+
{
46+
47+
};
48+
void QgsFeaturegeometryAndOwnership()
49+
{
50+
51+
};
52+
void QgsFeaturegetGeometry()
53+
{
54+
55+
};
56+
void QgsFeaturegetCommittedGeometry()
57+
{
58+
59+
};
60+
void QgsFeaturegetModifiedGeometry()
61+
{
62+
63+
};
64+
void QgsFeaturegetGeometrySize()
65+
{
66+
67+
};
68+
void QgsFeaturegetCommittedGeometrySize()
69+
{
70+
71+
};
72+
void QgsFeaturegetModifiedGeometrySize()
73+
{
74+
75+
};
76+
void QgsFeaturewellKnownText()
77+
{
78+
79+
};
80+
void QgsFeaturesetFeatureId()
81+
{
82+
83+
};
84+
void QgsFeaturetypeName()
85+
{
86+
87+
};
88+
void QgsFeaturesetGeometry()
89+
{
90+
91+
};
92+
void QgsFeaturesetGeometryAndOwnership()
93+
{
94+
95+
};
96+
void QgsFeaturesetModifiedGeometry()
97+
{
98+
99+
};
100+
void QgsFeatureinsertVertexBefore()
101+
{
102+
103+
};
104+
void QgsFeaturemoveVertexAt()
105+
{
106+
107+
};
108+
void QgsFeaturevertexAt()
109+
{
110+
111+
};
112+
void QgsFeatureisValid()
113+
{
114+
115+
};
116+
void QgsFeaturesetValid()
117+
{
118+
119+
};
120+
void QgsFeatureisDirty()
121+
{
122+
123+
};
124+
void QgsFeatureresetDirty()
125+
{
126+
127+
};
128+
void QgsFeatureintersects()
129+
{
130+
131+
};
132+
void QgsFeatureexportToWKT()
133+
{
134+
135+
};
136+
void QgsFeatureclosestVertex()
137+
{
138+
139+
};
140+
void QgsFeaturedistanceSquaredPointToSegment()
141+
{
142+
143+
};
144+
void QgsFeatureclosestSegmentWithContext()
145+
{
146+
147+
};
148+
void QgsFeatureclosestSegment()
149+
{
150+
151+
};
152+
void QgsFeatureboundingBox()
153+
{
154+
155+
};
156+
void QgsFeaturegeosGeometry()
157+
{
158+
159+
};
160+
161+
};
162+
163+
QTEST_MAIN(TestQgsFeature)
164+
#include "testqgsfeature.moc.cpp"
165+
166+
167+
168+

0 commit comments

Comments
 (0)