MCPcopy Create free account
hub / github.com/KDE/labplot / importFileIUElwp

Method importFileIUElwp

tests/import_export/FITS/FITSFilterTest.cpp:108–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void FITSFilterTest::importFileIUElwp() {
109 const QString& fileName = QFINDTESTDATA(QLatin1String("data/IUElwp25637mxlo.fits"));
110
111 Spreadsheet spreadsheet(QStringLiteral("test"), false);
112 FITSFilter filter;
113 filter.setCurrentExtensionName(QLatin1String("Melo"));
114 filter.readDataFromFile(fileName, &spreadsheet);
115
116 QCOMPARE(spreadsheet.columnCount(), 9);
117 QCOMPARE(spreadsheet.rowCount(), 1);
118
119 enableInfoTrace(true);
120 WARN(spreadsheet.column(0)->textAt(0).toStdString())
121 WARN(spreadsheet.column(1)->valueAt(0))
122 WARN(spreadsheet.column(2)->valueAt(0))
123 WARN(spreadsheet.column(3)->valueAt(0))
124 QCOMPARE(spreadsheet.column(0)->textAt(0), QLatin1String("LARGE"));
125 QCOMPARE(spreadsheet.column(1)->valueAt(0), 640);
126 QCOMPARE(spreadsheet.column(2)->valueAt(0), 1750);
127 QCOMPARE(spreadsheet.column(3)->valueAt(0), 2.6628);
128}
129
130void FITSFilterTest::importFileHRSz0y() {
131 const QString& fileName = QFINDTESTDATA(QLatin1String("data/HRSz0yd020fm_c2f.fits"));

Callers

nothing calls this directly

Calls 9

enableInfoTraceFunction · 0.85
toStdStringMethod · 0.80
readDataFromFileMethod · 0.45
columnCountMethod · 0.45
rowCountMethod · 0.45
textAtMethod · 0.45
columnMethod · 0.45
valueAtMethod · 0.45

Tested by

no test coverage detected