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

Method testCopyAssignment

3rdparty/qtcsv-qt5/tests/testvariantdata.cpp:248–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void TestVariantData::testCopyAssignment()
249{
250 QStringList firstRow, secondRow;
251 firstRow << "one" << "two" << "three";
252 secondRow << "four" << "five";
253
254 QtCSV::VariantData firstData;
255 firstData.addRow(firstRow);
256 firstData.addRow(secondRow);
257
258 {
259 QtCSV::VariantData secondData;
260 secondData = firstData;
261
262 QVERIFY2(firstData.rowCount() == secondData.rowCount(),
263 "Wrong number of rows");
264 QVERIFY2(firstRow == secondData.rowValues(0),
265 "Wrong data for first row");
266 QVERIFY2(secondRow == secondData.rowValues(1),
267 "Wrong data for second row");
268 }
269
270 QVERIFY2(2 == firstData.rowCount(), "Wrong number of rows");
271 QVERIFY2(firstRow == firstData.rowValues(0), "Wrong data for first row");
272 QVERIFY2(secondRow == firstData.rowValues(1), "Wrong data for second row");
273}
274
275void TestVariantData::testOperatorInput()
276{

Callers

nothing calls this directly

Calls 3

addRowMethod · 0.45
rowCountMethod · 0.45
rowValuesMethod · 0.45

Tested by

no test coverage detected