MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / testRemoveRow

Method testRemoveRow

3rdparty/qtcsv/tests/testvariantdata.cpp:278–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278void TestVariantData::testRemoveRow() {
279 QtCSV::VariantData data;
280 data.removeRow(0);
281 data.removeRow(563);
282
283 QVERIFY2(data.isEmpty(), "Container is not empty");
284
285 QStringList valuesFirst, valuesSecond;
286 valuesFirst << "one" << "two" << "three";
287 valuesSecond << "asgreg" << "ertetw" << "";
288
289 QString stringOne("hey test"), stringTwo("sdfwioiouoioi");
290
291 data << valuesFirst << valuesSecond << stringOne << stringTwo;
292
293 data.removeRow(2);
294
295 QVERIFY2(3 == data.rowCount(), "Wrong number of rows");
296 QVERIFY2(valuesFirst == data.rowValues(0), "Wrong data for first row");
297 QVERIFY2(valuesSecond == data.rowValues(1), "Wrong data for second row");
298 QVERIFY2((QStringList() << stringTwo) == data.rowValues(2),
299 "Wrong data for third row");
300}
301
302void TestVariantData::testReplaceRow() {
303 QStringList valuesFirst, valuesSecond;

Callers

nothing calls this directly

Calls 5

QStringListClass · 0.50
removeRowMethod · 0.45
isEmptyMethod · 0.45
rowCountMethod · 0.45
rowValuesMethod · 0.45

Tested by

no test coverage detected