| 433 | // ########################################################################################################### |
| 434 | |
| 435 | void SpiceFilterTest::LtSpiceACBinary() { |
| 436 | using namespace LowPassFilter_AC; |
| 437 | |
| 438 | READ_REFDATA(LTSpiceRefDataFile); |
| 439 | const QString& file = LTSpiceFile; |
| 440 | const int refColumnCount = refData.at(0).count(); |
| 441 | |
| 442 | bool binary; |
| 443 | QCOMPARE(SpiceFilter::isSpiceFile(file, &binary), true); |
| 444 | QCOMPARE(binary, true); |
| 445 | |
| 446 | SpiceFilter filter; |
| 447 | auto res = filter.preview(file, numberPreviewData); |
| 448 | |
| 449 | QCOMPARE(res.length(), numberPreviewData); |
| 450 | for (int i = 0; i < res.length(); i++) |
| 451 | QCOMPARE(res.at(i), refData.at(i)); |
| 452 | |
| 453 | QString resFileInfoString = filter.fileInfoString(file); |
| 454 | QCOMPARE(resFileInfoString, refFileInfoString); |
| 455 | |
| 456 | Spreadsheet sheet(QStringLiteral("Test"), false); |
| 457 | filter.readDataFromFile(file, &sheet, AbstractFileFilter::ImportMode::Replace); |
| 458 | |
| 459 | COMPARE_COLUMN_NAMES_MODE(sheet, columnNames, refColumnCount); |
| 460 | |
| 461 | COMPARE_ROW_VALUES(sheet, refData, refDataRowCount, refColumnCount); |
| 462 | } |
| 463 | |
| 464 | void SpiceFilterTest::LtSpiceTranBinary() { |
| 465 | using namespace LowPassFilter_Transient; |
nothing calls this directly
no test coverage detected