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

Function START_SECTION

src/tests/class_tests/openms/source/MSExperiment_test.cpp:644–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642 TEST_PRECONDITION_VIOLATED(exp.areaBeginConst(15,0,15,0))
643}
644END_SECTION
645
646START_SECTION(MSExperiment::ConstAreaIterator MSExperiment::areaBeginConst(const RangeManagerType& range) const)
647{
648 MSExperiment::RangeManagerType rm;
649 (RangeRT&)rm = RangeBase(0, 2);
650 (RangeMZ&)rm = RangeBase(3, 11);
651
652 const auto& exp = exp_area;
653 PeakMap::ConstAreaIterator it = exp.areaBeginConst(rm);
654 TEST_EQUAL(it->getPosition()[0], 3.0)
655 ++it;
656 TEST_EQUAL(it->getPosition()[0], 10.0)
657 ++it;
658 TEST_EQUAL(it->getPosition()[0], 11.0)
659 ++it;
660 TEST_EQUAL(it == exp.areaEndConst(), true)
661
662 // add mobility as constraint
663 (RangeMobility&)rm = RangeBase(2, 2);
664 it = exp.areaBeginConst(rm);
665 TEST_EQUAL(it->getPosition()[0], 10.0)
666 ++it;
667 TEST_EQUAL(it->getPosition()[0], 11.0)
668 ++it;
669 TEST_EQUAL(it == exp.areaEndConst(), true)
670}
671END_SECTION
672
673START_SECTION((AreaIterator areaEnd()))

Callers 1

Calls 15

RangeBaseFunction · 0.85
TEST_EQUALFunction · 0.85
areaBeginConstMethod · 0.80
getPositionMethod · 0.80
areaEndConstMethod · 0.80
getSampleMethod · 0.80
setChromatogramsMethod · 0.80
addSpectrumMethod · 0.80
isIMFrameMethod · 0.80
StringClass · 0.50
MSExperimentClass · 0.50
setNameMethod · 0.45

Tested by

no test coverage detected