OpenCoverage

qsqlfield.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/sql/kernel/qsqlfield.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QSqlFieldPrivate-
5{-
6public:-
7 QSqlFieldPrivate(const QString &name,-
8 QVariant::Type type) :-
9 ref(1), nm(name), ro(false), type(type), req(QSqlField::Unknown),-
10 len(-1), prec(-1), tp(-1), gen(true), autoval(false)-
11 {-
12 }
executed 6143 times by 11 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
6143
13-
14 QSqlFieldPrivate(const QSqlFieldPrivate &other)-
15 : ref(1),-
16 nm(other.nm),-
17 ro(other.ro),-
18 type(other.type),-
19 req(other.req),-
20 len(other.len),-
21 prec(other.prec),-
22 def(other.def),-
23 tp(other.tp),-
24 gen(other.gen),-
25 autoval(other.autoval)-
26 {}
executed 1071 times by 3 tests: end of block
Executed by:
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlrecord - unknown status
1071
27-
28 bool operator==(const QSqlFieldPrivate& other) const-
29 {-
30 return
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
(nm == other.nm
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
578
31 && ro == other.ro
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
578
32 && type == other.type
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
578
33 && req == other.req
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
578
34 && len == other.len
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
578
35 && prec == other.prec
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
578
36 && def == other.def
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
578
37 && gen == other.gen
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
578
38 && autoval == other.autoval);
executed 578 times by 6 tests: return (nm == other.nm && ro == other.ro && type == other.type && req == other.req && len == other.len && prec == other.prec && def == other.def && gen == other.gen && autoval == other.autoval);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
578
39 }-
40-
41 QAtomicInt ref;-
42 QString nm;-
43 uint ro: 1;-
44 QVariant::Type type;-
45 QSqlField::RequiredStatus req;-
46 int len;-
47 int prec;-
48 QVariant def;-
49 int tp;-
50 uint gen: 1;-
51 uint autoval: 1;-
52};-
53QSqlField::QSqlField(const QString& fieldName, QVariant::Type type)-
54{-
55 d = new QSqlFieldPrivate(fieldName, type);-
56 val = QVariant(type);-
57}
executed 6143 times by 11 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
6143
58-
59-
60-
61-
62-
63QSqlField::QSqlField(const QSqlField& other)-
64{-
65 d = other.d;-
66 d->ref.ref();-
67 val = other.val;-
68}
executed 29510 times by 11 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
29510
69-
70-
71-
72-
73-
74QSqlField& QSqlField::operator=(const QSqlField& other)-
75{-
76 qAtomicAssign(d, other.d);-
77 val = other.val;-
78 return
executed 233 times by 5 tests: return *this;
Executed by:
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
*this;
executed 233 times by 5 tests: return *this;
Executed by:
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
233
79}-
80bool QSqlField::operator==(const QSqlField& other) const-
81{-
82 return
executed 604 times by 6 tests: return ((d == other.d || *d == *other.d) && val == other.val);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
((d == other.d || *d == *other.d)
executed 604 times by 6 tests: return ((d == other.d || *d == *other.d) && val == other.val);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
604
83 && val == other.val);
executed 604 times by 6 tests: return ((d == other.d || *d == *other.d) && val == other.val);
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
604
84}-
85-
86-
87-
88-
89-
90QSqlField::~QSqlField()-
91{-
92 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 7097 times by 11 tests
Evaluated by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
FALSEevaluated 28556 times by 11 tests
Evaluated by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
)
7097-28556
93 delete d;
executed 7097 times by 11 tests: delete d;
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
7097
94}
executed 35653 times by 11 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
35653
95-
96-
97-
98-
99-
100-
101-
102void QSqlField::setRequiredStatus(RequiredStatus required)-
103{-
104 detach();-
105 d->req = required;-
106}
executed 970 times by 7 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
970
107void QSqlField::setLength(int fieldLength)-
108{-
109 detach();-
110 d->len = fieldLength;-
111}
executed 3 times by 1 test: end of block
Executed by:
  • tst_qsqlfield - unknown status
3
112-
113-
114-
115-
116-
117-
118-
119void QSqlField::setPrecision(int precision)-
120{-
121 detach();-
122 d->prec = precision;-
123}
executed 3 times by 1 test: end of block
Executed by:
  • tst_qsqlfield - unknown status
3
124-
125-
126-
127-
128-
129-
130-
131void QSqlField::setDefaultValue(const QVariant &value)-
132{-
133 detach();-
134 d->def = value;-
135}
executed 967 times by 6 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
967
136-
137-
138-
139-
140void QSqlField::setSqlType(int type)-
141{-
142 detach();-
143 d->tp = type;-
144}
executed 4556 times by 9 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
4556
145void QSqlField::setGenerated(bool gen)-
146{-
147 detach();-
148 d->gen = gen;-
149}
executed 1702 times by 4 tests: end of block
Executed by:
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlrecord - unknown status
1702
150void QSqlField::setValue(const QVariant& value)-
151{-
152 if (isReadOnly()
isReadOnly()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qsqlfield - unknown status
FALSEevaluated 1537 times by 8 tests
Evaluated by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
)
4-1537
153 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_qsqlfield - unknown status
4
154 val = value;-
155}
executed 1537 times by 8 tests: end of block
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
1537
156void QSqlField::clear()-
157{-
158 if (isReadOnly()
isReadOnly()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qsqlfield - unknown status
FALSEevaluated 129 times by 3 tests
Evaluated by:
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
)
14-129
159 return;
executed 14 times by 1 test: return;
Executed by:
  • tst_qsqlfield - unknown status
14
160 val = QVariant(type());-
161}
executed 129 times by 3 tests: end of block
Executed by:
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
129
162-
163-
164-
165-
166-
167-
168-
169void QSqlField::setName(const QString& name)-
170{-
171 detach();-
172 d->nm = name;-
173}
executed 7 times by 1 test: end of block
Executed by:
  • tst_qsqlfield - unknown status
7
174-
175-
176-
177-
178-
179-
180void QSqlField::setReadOnly(bool readOnly)-
181{-
182 detach();-
183 d->ro = readOnly;-
184}
executed 32 times by 3 tests: end of block
Executed by:
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
32
185QString QSqlField::name() const-
186{-
187 return
executed 4401 times by 9 tests: return d->nm;
Executed by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
d->nm;
executed 4401 times by 9 tests: return d->nm;
Executed by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
4401
188}-
189QVariant::Type QSqlField::type() const-
190{-
191 return
executed 312 times by 8 tests: return d->type;
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
d->type;
executed 312 times by 8 tests: return d->type;
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
312
192}-
193-
194-
195-
196-
197-
198-
199-
200void QSqlField::setType(QVariant::Type type)-
201{-
202 detach();-
203 d->type = type;-
204 if (!val.isValid()
!val.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
205 val = QVariant(type);
never executed: val = QVariant(type);
0
206}
never executed: end of block
0
207bool QSqlField::isReadOnly() const-
208{ return
executed 1953 times by 8 tests: return d->ro;
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
d->ro;
executed 1953 times by 8 tests: return d->ro;
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
}
1953
209-
210-
211-
212-
213-
214-
215-
216bool QSqlField::isNull() const-
217{ return
executed 678 times by 6 tests: return val.isNull();
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
val.isNull();
executed 678 times by 6 tests: return val.isNull();
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
}
678
218-
219-
220-
221void QSqlField::detach()-
222{-
223 qAtomicDetach(d);-
224}
executed 8261 times by 11 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_qsqlfield - unknown status
  • tst_qsqlrecord - unknown status
8261
225QSqlField::RequiredStatus QSqlField::requiredStatus() const-
226{-
227 return
executed 3 times by 1 test: return d->req;
Executed by:
  • tst_qsqlfield - unknown status
d->req;
executed 3 times by 1 test: return d->req;
Executed by:
  • tst_qsqlfield - unknown status
3
228}-
229int QSqlField::length() const-
230{-
231 return
executed 3 times by 1 test: return d->len;
Executed by:
  • tst_qsqlfield - unknown status
d->len;
executed 3 times by 1 test: return d->len;
Executed by:
  • tst_qsqlfield - unknown status
3
232}-
233int QSqlField::precision() const-
234{-
235 return
executed 4 times by 2 tests: return d->prec;
Executed by:
  • tst_QSqlQuery
  • tst_qsqlfield - unknown status
d->prec;
executed 4 times by 2 tests: return d->prec;
Executed by:
  • tst_QSqlQuery
  • tst_qsqlfield - unknown status
4
236}-
237-
238-
239-
240-
241-
242-
243-
244QVariant QSqlField::defaultValue() const-
245{-
246 return
never executed: return d->def;
d->def;
never executed: return d->def;
0
247}-
248int QSqlField::typeID() const-
249{-
250 return
never executed: return d->tp;
d->tp;
never executed: return d->tp;
0
251}-
252bool QSqlField::isGenerated() const-
253{-
254 return
executed 8549 times by 6 tests: return d->gen;
Executed by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlrecord - unknown status
d->gen;
executed 8549 times by 6 tests: return d->gen;
Executed by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_qsqlrecord - unknown status
8549
255}-
256-
257-
258-
259-
260-
261bool QSqlField::isValid() const-
262{-
263 return
executed 373 times by 3 tests: return d->type != QVariant::Invalid;
Executed by:
  • tst_QItemModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
d->type != QVariant::Invalid;
executed 373 times by 3 tests: return d->type != QVariant::Invalid;
Executed by:
  • tst_QItemModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
373
264}-
265-
266-
267QDebug operator<<(QDebug dbg, const QSqlField &f)-
268{-
269 QDebugStateSaver saver(dbg);-
270 dbg.nospace();-
271 dbg << "QSqlField(" << f.name() << ", " << QMetaType::typeName(f.type());-
272 if (f.length() >= 0
f.length() >= 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
273 dbg << ", length: " << f.length();
never executed: dbg << ", length: " << f.length();
0
274 if (f.precision() >= 0
f.precision() >= 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
275 dbg << ", precision: " << f.precision();
never executed: dbg << ", precision: " << f.precision();
0
276 if (f.requiredStatus() != QSqlField::Unknown
f.requiredStat...Field::UnknownDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
277 dbg << ", required: "
never executed: dbg << ", required: " << (f.requiredStatus() == QSqlField::Required ? "yes" : "no");
0
278 << (f.requiredStatus() == QSqlField::Required ? "yes" : "no");
never executed: dbg << ", required: " << (f.requiredStatus() == QSqlField::Required ? "yes" : "no");
0
279 dbg << ", generated: " << (f.isGenerated() ? "yes" : "no");-
280 if (f.typeID() >= 0
f.typeID() >= 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
281 dbg << ", typeID: " << f.typeID();
never executed: dbg << ", typeID: " << f.typeID();
0
282 if (!f.defaultValue().isNull()
!f.defaultValue().isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
283 dbg << ", defaultValue: \"" << f.defaultValue() << '\"';
never executed: dbg << ", defaultValue: \"" << f.defaultValue() << '\"';
0
284 dbg << ", autoValue: " << f.isAutoValue()-
285 << ", readOnly: " << f.isReadOnly() << ')';-
286 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
287}-
288bool QSqlField::isAutoValue() const-
289{-
290 return
executed 460 times by 4 tests: return d->autoval;
Executed by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
d->autoval;
executed 460 times by 4 tests: return d->autoval;
Executed by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
460
291}-
292-
293-
294-
295-
296-
297-
298-
299void QSqlField::setAutoValue(bool autoVal)-
300{-
301 detach();-
302 d->autoval = autoVal;-
303}
executed 21 times by 4 tests: end of block
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
21
304-
305-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9