本文整理汇总了C++中END_SECTION类的典型用法代码示例。如果您正苦于以下问题:C++ END_SECTION类的具体用法?C++ END_SECTION怎么用?C++ END_SECTION使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了END_SECTION类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HMMState
the_hmm.addNewState(state_B_2);
the_hmm.addNewState(state_C_2);
the_hmm.addNewState(state_AB_3);
the_hmm.addNewState(state_C_3);
the_hmm.addNewState(state_end);
HiddenMarkovModel* ptr = nullptr;
HiddenMarkovModel* nullPointer = nullptr;
HMMState* state_ptr = nullptr;
HMMState* state_ptr2 = nullptr;
HMMState* state_ptr3 = new HMMState("base", true);
HMMState* state_nullPointer = nullptr;
// Hidden Markov Model State Tests
START_SECTION([EXTRA](HMMState()))
state_ptr = new HMMState();
TEST_NOT_EQUAL(state_ptr, state_nullPointer)
END_SECTION
START_SECTION([EXTRA](virtual ~HMMState()))
delete state_ptr;
END_SECTION
state_ptr = nullptr;
START_SECTION([EXTRA](HMMState(const String& name, bool hidden = true)))
state_ptr = new HMMState("state_name_hidden", true);
TEST_NOT_EQUAL(state_ptr, state_nullPointer)
state_ptr2 = new HMMState("state_name_emitting", false);
TEST_NOT_EQUAL(state_ptr2, state_nullPointer)
END_SECTION
示例2: START_SECTION
CVMappingTerm* ptr = nullptr;
CVMappingTerm* nullPointer = nullptr;
START_SECTION(CVMappingTerm())
{
ptr = new CVMappingTerm();
TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION
START_SECTION(virtual ~CVMappingTerm())
{
delete ptr;
}
END_SECTION
ptr = new CVMappingTerm();
START_SECTION((CVMappingTerm(const CVMappingTerm &rhs)))
{
CVMappingTerm cvmt;
cvmt.setAccession("my_test_accession");
TEST_STRING_EQUAL(CVMappingTerm(cvmt).getAccession(), "my_test_accession")
cvmt.setUseTermName(true);
TEST_EQUAL(CVMappingTerm(cvmt).getUseTermName(), true)
cvmt.setUseTermName(false);
TEST_EQUAL(CVMappingTerm(cvmt).getUseTermName(), false)
cvmt.setUseTerm(true);
TEST_EQUAL(CVMappingTerm(cvmt).getUseTerm(), true)
示例3: START_TEST
#include <OpenMS/FORMAT/DTAFile.h>
using namespace OpenMS;
using namespace std;
///////////////////////////
START_TEST(NeutralLossDiffFilter, "$Id$")
/////////////////////////////////////////////////////////////
NeutralLossDiffFilter* e_ptr = 0;
NeutralLossDiffFilter* e_nullPointer = 0;
START_SECTION((NeutralLossDiffFilter()))
e_ptr = new NeutralLossDiffFilter;
TEST_NOT_EQUAL(e_ptr, e_nullPointer)
END_SECTION
START_SECTION((~NeutralLossDiffFilter()))
delete e_ptr;
END_SECTION
e_ptr = new NeutralLossDiffFilter();
START_SECTION((NeutralLossDiffFilter(const NeutralLossDiffFilter& source)))
NeutralLossDiffFilter copy(*e_ptr);
TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
示例4: START_SECTION
MascotGenericFile* ptr = 0;
MascotGenericFile* nullPointer = 0;
START_SECTION(MascotGenericFile())
{
ptr = new MascotGenericFile();
TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION
START_SECTION(virtual ~MascotGenericFile())
{
delete ptr;
}
END_SECTION
ptr = new MascotGenericFile();
START_SECTION((template < typename MapType > void load(const String &filename, MapType &exp)))
{
PeakMap exp;
ptr->load(OPENMS_GET_TEST_DATA_PATH("MascotInfile_test.mascot_in"), exp);
TEST_EQUAL(exp.size(), 1)
TEST_EQUAL(exp.begin()->size(), 9)
}
END_SECTION
START_SECTION((void store(std::ostream &os, const String &filename, const PeakMap &experiment, bool compact = false)))
{
PeakMap exp;
示例5: START_TEST
///////////////////////////
START_TEST(ZhangSimilarityScore, "$Id$")
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
using namespace OpenMS;
using namespace std;
ZhangSimilarityScore* ptr = 0;
ZhangSimilarityScore* nullPointer = 0;
START_SECTION(ZhangSimilarityScore())
ptr = new ZhangSimilarityScore();
TEST_NOT_EQUAL(ptr, nullPointer)
END_SECTION
START_SECTION(~ZhangSimilarityScore())
delete ptr;
END_SECTION
ptr = new ZhangSimilarityScore();
START_SECTION(ZhangSimilarityScore(const ZhangSimilarityScore& source))
ZhangSimilarityScore copy(*ptr);
TEST_EQUAL(copy.getName(), ptr->getName());
TEST_EQUAL(copy.getParameters(), ptr->getParameters());
END_SECTION
示例6: TEST_NOT_EQUAL
TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION
START_SECTION(~ClusterAnalyzer())
{
delete ptr;
}
END_SECTION
START_SECTION((ClusterAnalyzer(const ClusterAnalyzer &source)))
{
NOT_TESTABLE
}
END_SECTION
ptr = new ClusterAnalyzer();
START_SECTION((std::vector< float > averageSilhouetteWidth(const std::vector< BinaryTreeNode > &tree, const DistanceMatrix< float > &original)))
{
DistanceMatrix<float> matrix(6,666);
matrix.setValue(1,0,0.5f);
matrix.setValue(2,0,0.8f);
matrix.setValue(2,1,0.3f);
matrix.setValue(3,0,0.6f);
matrix.setValue(3,1,0.8f);
matrix.setValue(3,2,0.8f);
matrix.setValue(4,0,0.8f);
matrix.setValue(4,1,0.8f);
matrix.setValue(4,2,0.8f);
matrix.setValue(4,3,0.4f);
示例7: START_TEST
///////////////////////////
START_TEST(PILISModel_test, "$Id$")
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
using namespace OpenMS;
using namespace std;
PILISModel* ptr = 0;
PILISModel* nullPointer = 0;
const AASequence peptide = AASequence::fromString("DFPIANGER");
START_SECTION(PILISModel())
ptr = new PILISModel();
TEST_NOT_EQUAL(ptr, nullPointer)
END_SECTION
START_SECTION(~PILISModel())
delete ptr;
END_SECTION
ptr = new PILISModel();
START_SECTION(PILISModel(const PILISModel& model))
PILISModel copy(*ptr);
TEST_EQUAL(copy.getParameters(), ptr->getParameters())
END_SECTION
START_SECTION(PILISModel& operator = (const PILISModel& mode))
示例8: START_TEST
#include <map>
using namespace OpenMS;
using namespace std;
///////////////////////////
START_TEST(ComplementMarker, "$Id$")
/////////////////////////////////////////////////////////////
ComplementMarker* e_ptr = nullptr;
ComplementMarker* e_nullPointer = nullptr;
START_SECTION((ComplementMarker()))
e_ptr = new ComplementMarker;
TEST_NOT_EQUAL(e_ptr, e_nullPointer)
END_SECTION
START_SECTION((~ComplementMarker()))
delete e_ptr;
END_SECTION
e_ptr = new ComplementMarker();
START_SECTION((ComplementMarker(const ComplementMarker& source)))
ComplementMarker copy(*e_ptr);
TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
示例9: START_TEST
#include <OpenMS/KERNEL/StandardTypes.h>
#include <OpenMS/FORMAT/DTAFile.h>
using namespace OpenMS;
using namespace std;
///////////////////////////
START_TEST(SpectrumCheapDPCorr, "$Id$")
/////////////////////////////////////////////////////////////
SpectrumCheapDPCorr* e_ptr = 0;
SpectrumCheapDPCorr* e_nullPointer = 0;
START_SECTION(SpectrumCheapDPCorr())
e_ptr = new SpectrumCheapDPCorr;
TEST_NOT_EQUAL(e_ptr, e_nullPointer)
END_SECTION
START_SECTION(~SpectrumCheapDPCorr())
delete e_ptr;
END_SECTION
e_ptr = new SpectrumCheapDPCorr();
START_SECTION(SpectrumCheapDPCorr(const SpectrumCheapDPCorr& source))
SpectrumCheapDPCorr copy(*e_ptr);
TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
示例10: START_TEST
#include <OpenMS/FORMAT/DTAFile.h>
using namespace OpenMS;
using namespace std;
///////////////////////////
START_TEST(PeakMarker, "$Id$")
/////////////////////////////////////////////////////////////
PeakMarker* e_ptr = 0;
PeakMarker* e_nullPointer = 0;
START_SECTION((PeakMarker()))
e_ptr = new PeakMarker;
TEST_NOT_EQUAL(e_ptr, e_nullPointer)
END_SECTION
START_SECTION((~PeakMarker()))
delete e_ptr;
END_SECTION
e_ptr = new PeakMarker();
START_SECTION((PeakMarker(const PeakMarker& source)))
PeakMarker copy(*e_ptr);
TEST_EQUAL(copy.getParameters(), e_ptr->getParameters())
TEST_EQUAL(copy.getName(), e_ptr->getName())
END_SECTION
示例11: START_TEST
#include <OpenMS/FORMAT/IdXMLFile.h>
#include <OpenMS/FORMAT/FeatureXMLFile.h>
///////////////////////////
using namespace OpenMS;
using namespace std;
START_TEST(PrecursorIonSelection, "$Id$")
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
PrecursorIonSelection* ptr = 0;
PrecursorIonSelection* nullPointer = 0;
START_SECTION(PrecursorIonSelection())
ptr = new PrecursorIonSelection();
TEST_NOT_EQUAL(ptr, nullPointer)
END_SECTION
START_SECTION(~PrecursorIonSelection())
delete ptr;
END_SECTION
ptr = new PrecursorIonSelection();
START_SECTION(PrecursorIonSelection(const PrecursorIonSelection& source))
ptr->setMaxScore(23.5);
PrecursorIonSelection copy(*ptr);
TEST_EQUAL(copy.getParameters(), ptr->getParameters())
TEST_REAL_SIMILAR(copy.getMaxScore(), ptr->getMaxScore())
END_SECTION
示例12: START_SECTION
SingleLinkage* ptr = 0;
SingleLinkage* nullPointer = 0;
START_SECTION(SingleLinkage())
{
ptr = new SingleLinkage();
TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION
START_SECTION(~SingleLinkage())
{
delete ptr;
}
END_SECTION
ptr = new SingleLinkage();
START_SECTION((SingleLinkage(const SingleLinkage &source)))
{
SingleLinkage copy(*ptr);
TEST_EQUAL(copy.getProductName(), ptr->getProductName());
}
END_SECTION
START_SECTION((SingleLinkage& operator=(const SingleLinkage &source)))
{
SingleLinkage copy;
copy = *ptr;
TEST_EQUAL(copy.getProductName(), ptr->getProductName());
}
示例13: START_SECTION
CVMappings* ptr = 0;
CVMappings* nullPointer = 0;
START_SECTION(CVMappings())
{
ptr = new CVMappings();
TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION
START_SECTION(virtual ~CVMappings())
{
delete ptr;
}
END_SECTION
ptr = new CVMappings();
START_SECTION((CVMappings(const CVMappings &rhs)))
{
CVMappings cvm;
CVMappingRule r1, r2;
vector<CVMappingRule> rules;
rules.push_back(r1);
rules.push_back(r2);
cvm.setMappingRules(rules);
TEST_EQUAL(CVMappings(cvm).getMappingRules() == rules, true)
CVReference ref1, ref2;
ref1.setIdentifier("Ref1");
ref2.setIdentifier("Ref2");
示例14: START_TEST
///////////////////////////
START_TEST(SvmTheoreticalSpectrumGenerator, "$Id$")
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
using namespace OpenMS;
using namespace std;
SvmTheoreticalSpectrumGenerator* ptr = 0;
SvmTheoreticalSpectrumGenerator* nullPointer = 0;
START_SECTION(SvmTheoreticalSpectrumGenerator())
ptr = new SvmTheoreticalSpectrumGenerator();
TEST_NOT_EQUAL(ptr, nullPointer)
END_SECTION
START_SECTION(SvmTheoreticalSpectrumGenerator(const SvmTheoreticalSpectrumGenerator& source))
SvmTheoreticalSpectrumGenerator copy(*ptr);
TEST_EQUAL(copy.getParameters(), ptr->getParameters())
END_SECTION
START_SECTION(~SvmTheoreticalSpectrumGenerator())
delete ptr;
END_SECTION
ptr = new SvmTheoreticalSpectrumGenerator();
AASequence peptide = AASequence::fromString("IFSQVGK");
示例15: START_SECTION
BinnedSharedPeakCount* ptr = 0;
BinnedSharedPeakCount* nullPointer = 0;
START_SECTION(BinnedSharedPeakCount())
{
ptr = new BinnedSharedPeakCount();
TEST_NOT_EQUAL(ptr, nullPointer)
}
END_SECTION
START_SECTION(~BinnedSharedPeakCount())
{
delete ptr;
}
END_SECTION
ptr = new BinnedSharedPeakCount();
START_SECTION((BinnedSharedPeakCount(const BinnedSharedPeakCount &source)))
{
BinnedSharedPeakCount copy(*ptr);
TEST_EQUAL(copy.getName(), ptr->getName());
TEST_EQUAL(copy.getParameters(), ptr->getParameters());
}
END_SECTION
START_SECTION((BinnedSharedPeakCount& operator=(const BinnedSharedPeakCount &source)))
{
BinnedSharedPeakCount copy;
copy = *ptr;
TEST_EQUAL(copy.getName(), ptr->getName());
TEST_EQUAL(copy.getParameters(), ptr->getParameters());