MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / START_SECTION

Function START_SECTION

src/tests/class_tests/openms/source/FWHM_test.cpp:33–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31START_SECTION(~FWHM())
32delete ptr;
33END_SECTION
34
35
36START_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}
53END_SECTION
54
55START_SECTION(QCBase::Status requirements() const override)

Calls 9

TEST_EQUALFunction · 0.85
clearMetaInfoMethod · 0.80
getMetaValueMethod · 0.80
PeptideHitClass · 0.50
push_backMethod · 0.45
setMetaValueMethod · 0.45
computeMethod · 0.45
requirementsMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected