| 31 | START_SECTION(~FWHM()) |
| 32 | delete ptr; |
| 33 | END_SECTION |
| 34 | |
| 35 | |
| 36 | START_SECTION(void compute(FeatureMap& features)) |
| 37 | { |
| 38 | Feature f; |
| 39 | PeptideIdentification pi; |
| 40 | pi.getHits().push_back(PeptideHit(1.0, 1, 3, AASequence::fromString("KKK"))); |
| 41 | f.getPeptideIdentifications().push_back(pi); |
| 42 | f.setMetaValue("FWHM", 123.4); |
| 43 | FeatureMap fm; |
| 44 | fm.push_back(f); |
| 45 | f.clearMetaInfo(); |
| 46 | f.setMetaValue("model_FWHM", 98.1); |
| 47 | fm.push_back(f); |
| 48 | FWHM fw; |
| 49 | fw.compute(fm); |
| 50 | TEST_EQUAL(fm[0].getPeptideIdentifications()[0].getMetaValue("FWHM"), 123.4) |
| 51 | TEST_EQUAL(fm[1].getPeptideIdentifications()[0].getMetaValue("FWHM"), 98.1) |
| 52 | } |
| 53 | END_SECTION |
| 54 | |
| 55 | START_SECTION(QCBase::Status requirements() const override) |
no test coverage detected