A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/unit__test__util_8cpp.html below:

NCBI C++ ToolKit: src/objtools/unit_test_util/unit_test_util.cpp File Reference

Go to the source code of this file.

Go to the SVN repository for this file.

void  SetDbxref (CBioSource &src, string db, CObject_id::TId id)   void  RemoveDbxref (CBioSource &src, string db, CObject_id::TId id)   void  SetTaxon (CBioSource &src, size_t taxon)   CRef< CSeq_entryBuildGoodSeq ()   CRef< CSeqdescBuildGoodPubSeqdesc ()   void  AddGoodPub (CRef< CSeq_entry > entry)   void  AddGoodSource (CRef< CSeq_entry > entry)   void  SetDbxref (CBioSource &src, string db, string id)   void  SetDbxref (CRef< CSeq_entry > entry, string db, CObject_id::TId id)   void  SetDbxref (CRef< CSeq_entry > entry, string db, string id)   void  SetDbxref (CRef< CSeq_feat > feat, string db, CObject_id::TId id)   void  SetDbxref (CRef< CSeq_feat > feat, string db, string id)   void  RemoveDbxref (CRef< CSeq_entry > entry, string db, CObject_id::TId id)   void  RemoveDbxref (CRef< CSeq_feat > feat, string db, CObject_id::TId id)   void  SetTaxon (CRef< CSeq_entry > entry, size_t taxon)   void  AddFeatAnnotToSeqEntry (CRef< CSeq_annot > annot, CRef< CSeq_entry > entry)   CRef< CSeq_annotAddFeat (CRef< CSeq_feat > feat, CRef< CSeq_entry > entry)   CRef< CSeq_featAddProtFeat (CRef< CSeq_entry > entry)   CRef< CSeq_featAddGoodSourceFeature (CRef< CSeq_entry > entry)   CRef< CSeq_featMakeMiscFeature (CRef< CSeq_id > id, size_t right_end, size_t left_end)   CRef< CSeq_featBuildGoodFeat ()   CRef< CSeq_idIdFromEntry (CRef< CSeq_entry > entry)   CRef< CSeq_featAddMiscFeature (CRef< CSeq_entry > entry, size_t right_end)   CRef< CSeq_featAddMiscFeature (CRef< CSeq_entry > entry)   void  SetTaxname (CRef< CSeq_entry > entry, string taxname)   void  SetSebaea_microphylla (CRef< CSeq_entry > entry)   void  SetSynthetic_construct (CRef< CSeq_entry > entry)   void  SetDrosophila_melanogaster (CRef< CSeq_entry > entry)   void  SetCommon (CRef< CSeq_entry > entry, string common)   void  SetLineage (CRef< CSeq_entry > entry, string lineage)   void  SetDiv (CRef< CSeq_entry > entry, string div)   void  SetOrigin (CRef< CSeq_entry > entry, CBioSource::TOrigin origin)   void  SetGcode (CRef< CSeq_entry > entry, COrgName::TGcode gcode)   void  SetMGcode (CRef< CSeq_entry > entry, COrgName::TGcode mgcode)   void  SetPGcode (CRef< CSeq_entry > entry, COrgName::TGcode pgcode)   void  ResetOrgname (CRef< CSeq_entry > entry)   void  SetFocus (CRef< CSeq_entry > entry)   void  ClearFocus (CRef< CSeq_entry > entry)   void  SetGenome (CRef< CSeq_entry > entry, CBioSource::TGenome genome)   void  SetSubSource (CBioSource &src, CSubSource::TSubtype subtype, string val)   void  SetSubSource (CRef< CSeq_entry > entry, CSubSource::TSubtype subtype, string val)   void  SetChromosome (CBioSource &src, string chromosome)   void  SetChromosome (CRef< CSeq_entry > entry, string chromosome)   void  SetTransgenic (CBioSource &src, bool do_set)   void  SetTransgenic (CRef< CSeq_entry > entry, bool do_set)   void  SetOrgMod (CBioSource &src, COrgMod::TSubtype subtype, string val)   void  SetOrgMod (CRef< CSeq_entry > entry, COrgMod::TSubtype subtype, string val)   CRef< CAuthorBuildGoodAuthor ()   CRef< CPubBuildGoodArticlePub ()   CRef< CPubBuildGoodCitGenPub (CRef< CAuthor > author, int serial_number)   CRef< CPubBuildGoodCitSubPub ()   void  MakeSeqLong (CBioseq &seq)   void  SetBiomol (CRef< CSeq_entry > entry, CMolInfo::TBiomol biomol)   void  SetTech (CRef< CSeq_entry > entry, CMolInfo::TTech tech)   void  SetCompleteness (CRef< CSeq_entry > entry, CMolInfo::TCompleteness completeness)   CRef< CSeq_entryBuildGoodProtSeq ()   CRef< CSeq_entryMakeProteinForGoodNucProtSet (string id)   CRef< CSeq_featMakeCDSForGoodNucProtSet (const string &nuc_id, const string &prot_id)   CRef< CSeq_entryBuildGoodNucProtSet ()   void  AdjustProtFeatForNucProtSet (CRef< CSeq_entry > entry)   void  SetNucProtSetProductName (CRef< CSeq_entry > entry, string new_name)   CRef< CSeq_featGetCDSFromGoodNucProtSet (CRef< CSeq_entry > entry)   CRef< CSeq_entryGetNucleotideSequenceFromGoodNucProtSet (CRef< CSeq_entry > entry)   CRef< CSeq_entryGetProteinSequenceFromGoodNucProtSet (CRef< CSeq_entry > entry)   CRef< CSeq_featGetProtFeatFromGoodNucProtSet (CRef< CSeq_entry > entry)   void  RetranslateCdsForNucProtSet (CRef< CSeq_entry > entry, CScope &scope)   void  SetProteinPartial (CRef< CSeq_entry > pentry, bool partial5, bool partial3)   void  SetNucProtSetPartials (CRef< CSeq_entry > entry, bool partial5, bool partial3)   void  ChangeNucProtSetProteinId (CRef< CSeq_entry > entry, CRef< CSeq_id > id)   void  ChangeNucProtSetNucId (CRef< CSeq_entry > entry, CRef< CSeq_id > id)   void  MakeNucProtSet3Partial (CRef< CSeq_entry > entry)   void  ChangeId (CRef< CSeq_annot > annot, CRef< CSeq_id > id)   void  ChangeProductId (CRef< CSeq_annot > annot, CRef< CSeq_id > id)   void  ChangeNucId (CRef< CSeq_entry > np_set, CRef< CSeq_id > id)   void  ChangeProtId (CRef< CSeq_entry > np_set, CRef< CSeq_id > id)   CRef< CSeq_idBuildRefSeqId ()   void  ChangeId (CRef< CSeq_entry > entry, CRef< CSeq_id > id)   void  ChangeId (CRef< CSeq_annot > annot, string suffix)   void  ChangeId (CRef< CSeq_entry > entry, string suffix)   CRef< CSeq_entryBuildGenProdSetNucProtSet (CRef< CSeq_id > nuc_id, CRef< CSeq_id > prot_id)   CRef< CSeq_featMakemRNAForCDS (CRef< CSeq_feat > feat)   CRef< CSeq_entryBuildGoodGenProdSet ()   CRef< CSeq_entryGetGenomicFromGenProdSet (CRef< CSeq_entry > entry)   CRef< CSeq_featGetmRNAFromGenProdSet (CRef< CSeq_entry > entry)   CRef< CSeq_entryGetNucProtSetFromGenProdSet (CRef< CSeq_entry > entry)   CRef< CSeq_featGetCDSFromGenProdSet (CRef< CSeq_entry > entry)   void  RevComp (CBioseq &bioseq)   void  RevComp (CSeq_loc &loc, size_t len)   void  RevComp (CRef< CSeq_entry > entry)   CRef< CSeq_entryBuildGoodDeltaSeq ()   void  RemoveDeltaSeqGaps (CRef< CSeq_entry > entry)   void  AddToDeltaSeq (CRef< CSeq_entry > entry, string seq)   CRef< CSeq_entryBuildSegSetPart (string id_str)   CRef< CSeq_entryBuildGoodSegSet ()   CRef< CSeq_entryBuildGoodEcoSet ()   CRef< CSeq_entryBuildGoodEcoSetWithAlign (size_t front_insert)   void  ReverseAlignmentStrand (CDense_seg &denseg, size_t pos, size_t seq_len)   CRef< CSeq_alignBuildGoodAlign ()   CRef< CSeq_annotBuildGoodGraphAnnot (string id)   void  RemoveDescriptorType (CRef< CSeq_entry > entry, CSeqdesc::E_Choice desc_choice)   CRef< CSeq_featBuildtRNA (CRef< CSeq_id > id)   CRef< CSeq_featBuildGoodtRNA (CRef< CSeq_id > id)   CRef< CSeq_locMakeMixLoc (CRef< CSeq_id > id)   CRef< CSeq_featMakeIntronForMixLoc (CRef< CSeq_id > id)   void  SetSpliceForMixLoc (CBioseq &seq)   CRef< CSeq_featMakeGeneForFeature (CRef< CSeq_feat > feat)   CRef< CSeq_featAddGoodImpFeat (CRef< CSeq_entry > entry, string key)   void  TraverseAndRunTestCases (ITestRunner *pTestRunner, CDir dirWithTestCases, const set< string > &setOfRequiredSuffixes, const set< string > &setOfOptionalSuffixes, const set< string > &setOfIgnoredSuffixes, TTraverseAndRunTestCasesFlags fFlags)   This is for running data-driven test cases below the given top-level test directory. More...
  ◆ AddFeat()

Definition at line 353 of file unit_test_util.cpp.

References CBioseq_Base::GetAnnot(), CBioseq_set_Base::GetAnnot(), CSeq_entry_Base::GetSeq(), CSeq_entry_Base::GetSet(), CSeq_entry_Base::IsSeq(), CSeq_entry_Base::IsSet(), CBioseq_Base::IsSetAnnot(), CBioseq_set_Base::IsSetAnnot(), CBioseq_Base::SetAnnot(), CBioseq_set_Base::SetAnnot(), CSeq_annot_Base::SetData(), CSeq_entry_Base::SetSeq(), and CSeq_entry_Base::SetSet().

Referenced by AddMiscFeature(), AddProtFeat(), BuildGoodGenProdSet(), BuildGoodNucProtSet(), and MakeProteinForGoodNucProtSet().

◆ AddFeatAnnotToSeqEntry() ◆ AddGoodImpFeat() ◆ AddGoodPub()

Definition at line 161 of file unit_test_util.cpp.

References BuildGoodCitSubPub(), BuildGoodPubSeqdesc(), CSeq_entry_Base::IsSeq(), CSeq_entry_Base::IsSet(), CBioseq_Base::SetDescr(), CBioseq_set_Base::SetDescr(), CPubdesc_Base::SetPub(), CSeqdesc_Base::SetPub(), CSeq_entry_Base::SetSeq(), and CSeq_entry_Base::SetSet().

Referenced by BuildGoodNucProtSet(), BuildGoodSegSet(), and BuildGoodSeq().

◆ AddGoodSource()

Definition at line 182 of file unit_test_util.cpp.

References CSubSource_Base::eSubtype_chromosome, CSeq_entry_Base::IsSeq(), CSeq_entry_Base::IsSet(), CBioseq_Base::SetDescr(), CBioseq_set_Base::SetDescr(), CSubSource_Base::SetName(), CBioSource_Base::SetOrg(), CSeq_entry_Base::SetSeq(), CSeq_entry_Base::SetSet(), CSeqdesc_Base::SetSource(), CSubSource_Base::SetSubtype(), CBioSource_Base::SetSubtype(), and SetTaxon().

Referenced by BuildGoodNucProtSet(), and BuildGoodSeq().

◆ AddGoodSourceFeature() ◆ AddMiscFeature() [1/2] ◆ AddMiscFeature() [2/2] ◆ AddProtFeat() ◆ AddToDeltaSeq() ◆ AdjustProtFeatForNucProtSet() ◆ BuildGenProdSetNucProtSet() ◆ BuildGoodAlign() ◆ BuildGoodArticlePub() ◆ BuildGoodAuthor() ◆ BuildGoodCitGenPub() ◆ BuildGoodCitSubPub() ◆ BuildGoodDeltaSeq()

Definition at line 1643 of file unit_test_util.cpp.

References BuildGoodSeq(), CSeq_inst_Base::eMol_dna, CSeq_inst_Base::eRepr_delta, CBioseq_Base::SetInst(), and CSeq_entry_Base::SetSeq().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CheckAdjustStart(), CheckAdjustStartAndStop(), CheckAdjustStop(), MakeTrnaWithAnticodon(), TestDeltaTechAllowed(), TestDeltaTechNotAllowed(), TestStartGapSeg(), TryOneCase(), and TryOneCaseMixLoc().

◆ BuildGoodEcoSet()

Definition at line 1768 of file unit_test_util.cpp.

References BuildGoodSeq(), ChangeId(), CBioseq_set_Base::eClass_eco_set, CBioseq_set_Base::SetClass(), CBioseq_set_Base::SetDescr(), CBioseq_set_Base::SetSeq_set(), CSeq_entry_Base::SetSet(), and CSeqdesc_Base::SetTitle().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BuildAlignmentWithInternalGap(), BuildGoodEcoSetWithAlign(), Check3Policy(), MakeMultiSeqCDS(), and TestCollidingAccessionFixes().

◆ BuildGoodEcoSetWithAlign()

Definition at line 1790 of file unit_test_util.cpp.

References BuildGoodEcoSet(), CSeq_align_Base::eType_global, CBioseq_set_Base::GetSeq_set(), CSeq_entry_Base::GetSet(), i, offset, orig, CBioseq_set_Base::SetAnnot(), CSeq_annot_Base::SetData(), CSeq_align_Base::SetDim(), CSeq_align_Base::SetSegs(), CBioseq_set_Base::SetSeq_set(), CSeq_entry_Base::SetSet(), and CSeq_align_Base::SetType().

Referenced by BOOST_AUTO_TEST_CASE(), CreateBioseqsAndAlign(), and GetGoodSeqEntryWithFeatureIds().

◆ BuildGoodFeat() ◆ BuildGoodGenProdSet()

Definition at line 1505 of file unit_test_util.cpp.

References AddFeat(), CSerialObject::Assign(), BuildGenProdSetNucProtSet(), BuildGoodSeq(), CBioseq_set_Base::eClass_gen_prod_set, GetCDSFromGoodNucProtSet(), MakemRNAForCDS(), CBioseq_set_Base::SetClass(), CBioseq_Base::SetInst(), CSeq_id_Base::SetLocal(), CSeq_feat_Base::SetLocation(), CSeq_feat_Base::SetProduct(), CSeq_entry_Base::SetSeq(), CBioseq_set_Base::SetSeq_set(), CSeq_entry_Base::SetSet(), and CObject_id_Base::SetStr().

Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().

◆ BuildGoodGraphAnnot() ◆ BuildGoodNucProtSet()

Definition at line 1136 of file unit_test_util.cpp.

References AddFeat(), AddGoodPub(), AddGoodSource(), CMolInfo_Base::eBiomol_genomic, CBioseq_set_Base::eClass_nuc_prot, CSeq_inst_Base::eMol_dna, CSeq_inst_Base::eRepr_raw, MakeCDSForGoodNucProtSet(), MakeProteinForGoodNucProtSet(), CMolInfo_Base::SetBiomol(), CBioseq_Base::SetDescr(), CBioseq_Base::SetId(), CBioseq_Base::SetInst(), CSeqdesc_Base::SetMolinfo(), CSeq_entry_Base::SetSeq(), and CSeq_entry_Base::SetSet().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BuildGenProdSetBigNucProtSet(), BuildGenProdSetNucProtSet(), BuildGoodSpliceNucProtSet(), BuildSmallGenomeSet(), MakeRegulatoryFeatureTest(), OneTerminalTranslationExceptionTest(), s_BuildBadEcNumberEntry(), TestBadProtId(), TestGoodNucId(), TestGoodProtId(), TestMatPeptideListing(), TestNewAccessionOnNucProt(), TestTrimForFrame(), and TryOneCDSCase().

◆ BuildGoodProtSeq() ◆ BuildGoodPubSeqdesc() ◆ BuildGoodSegSet()

Definition at line 1707 of file unit_test_util.cpp.

References AddGoodPub(), BuildSegSetPart(), CMolInfo_Base::eBiomol_genomic, CBioseq_set_Base::eClass_parts, CBioseq_set_Base::eClass_segset, CSeq_inst_Base::eMol_dna, CSeq_inst_Base::eRepr_seg, CSubSource_Base::eSubtype_chromosome, SetBiomol(), CBioseq_set_Base::SetClass(), CDbtag_Base::SetDb(), CSeq_entry::SetDescr(), CBioseq_Base::SetId(), CBioseq_Base::SetInst(), CSubSource_Base::SetName(), CBioSource_Base::SetOrg(), CSeq_entry_Base::SetSeq(), CBioseq_set_Base::SetSeq_set(), CSeq_entry_Base::SetSet(), CSeqdesc_Base::SetSource(), CSubSource_Base::SetSubtype(), CBioSource_Base::SetSubtype(), CDbtag_Base::SetTag(), and CSeq_loc::SetWhole().

◆ BuildGoodSeq()

Definition at line 127 of file unit_test_util.cpp.

References AddGoodPub(), AddGoodSource(), CMolInfo_Base::eBiomol_genomic, CSeq_inst_Base::eMol_dna, CSeq_inst_Base::eRepr_raw, CMolInfo_Base::SetBiomol(), CBioseq_Base::SetDescr(), CBioseq_Base::SetId(), CBioseq_Base::SetInst(), CSeqdesc_Base::SetMolinfo(), and CSeq_entry_Base::SetSeq().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BuildAlignmentWithInternalGap(), BuildGapFuzz100DeltaSeq(), BuildGenProdSetWithBigProduct(), BuildGoodDeltaSeq(), BuildGoodEcoSet(), BuildGoodGenProdSet(), BuildGoodProtSeq(), CheckGeneOntologyTermDuplicate(), CheckGeneOntologyTermNotDuplicate(), CheckInfluenzaDefline(), CheckLocalId(), CheckOneSpecificHost(), CheckRegulatoryFeatures(), CheckUnbalancedParenthesesOrgMod(), CheckUnbalancedParenthesesSubSource(), MakeEntryForDeltaConversion(), s_ArePrimersUnique(), TestBulkSpecificHostFixList(), TestConsultRequired(), TestMultipleEquivBioSources(), TestNewAccessionAsInference(), TestNewAccessionOnNuc(), TestOneGeneralSeqId(), TestOneLatLonCountry(), TestOneLongGeneral(), TestOneOrganelleSequenceDefline(), TestOneOtherAcc(), TestOnePlasmid(), TestOneReplicon(), TestOneStrain(), TestOneStrainNew(), TestOverlappingRNAFeatures(), TestSpecificHostNoError(), TestUTRPair(), and TryMiscWithNs().

◆ BuildGoodtRNA() ◆ BuildRefSeqId() ◆ BuildSegSetPart() ◆ BuildtRNA() ◆ ChangeId() [1/4] ◆ ChangeId() [2/4] ◆ ChangeId() [3/4] ◆ ChangeId() [4/4]

Definition at line 1450 of file unit_test_util.cpp.

References ChangeId(), CSeq_entry_Base::IsSeq(), CSeq_entry_Base::IsSet(), CBioseq_Base::IsSetAnnot(), CBioseq_set_Base::IsSetAnnot(), CBioseq_Base::SetAnnot(), CBioseq_set_Base::SetAnnot(), CBioseq_Base::SetId(), CSeq_entry_Base::SetSeq(), CBioseq_set_Base::SetSeq_set(), and CSeq_entry_Base::SetSet().

◆ ChangeNucId()

Definition at line 1364 of file unit_test_util.cpp.

References ChangeId(), CSeq_entry_Base::IsSet(), CBioseq_Base::IsSetAnnot(), CBioseq_set_Base::IsSetAnnot(), NON_CONST_ITERATE, CBioseq_Base::SetAnnot(), CBioseq_set_Base::SetAnnot(), CBioseq_Base::SetId(), CSeq_entry_Base::SetSeq(), CBioseq_set_Base::SetSeq_set(), and CSeq_entry_Base::SetSet().

◆ ChangeNucProtSetNucId() ◆ ChangeNucProtSetProteinId() ◆ ChangeProductId() ◆ ChangeProtId() ◆ ClearFocus() ◆ GetCDSFromGenProdSet() ◆ GetCDSFromGoodNucProtSet() ◆ GetGenomicFromGenProdSet() ◆ GetmRNAFromGenProdSet() ◆ GetNucleotideSequenceFromGoodNucProtSet() ◆ GetNucProtSetFromGenProdSet() ◆ GetProteinSequenceFromGoodNucProtSet() ◆ GetProtFeatFromGoodNucProtSet() ◆ IdFromEntry() ◆ MakeCDSForGoodNucProtSet() ◆ MakeGeneForFeature()

Definition at line 1966 of file unit_test_util.cpp.

References eExtreme_Positional, CSeq_loc::GetId(), CSeq_feat_Base::GetLocation(), CSeq_feat_Base::GetPartial(), CSeq_loc::GetStart(), CSeq_loc::GetStop(), CSeq_loc::GetStrand(), CSeq_loc::IsPartialStart(), CSeq_loc::IsPartialStop(), CSeq_feat_Base::IsSetPartial(), CSeq_feat_Base::SetData(), CSeq_feat_Base::SetLocation(), and CSeq_feat_Base::SetPartial().

◆ MakeIntronForMixLoc() ◆ MakeMiscFeature() ◆ MakeMixLoc() ◆ MakemRNAForCDS() ◆ MakeNucProtSet3Partial()

Definition at line 1319 of file unit_test_util.cpp.

References CMolInfo_Base::eCompleteness_no_right, eExtreme_Biological, GetCDSFromGoodNucProtSet(), prot, CBioseq_Base::SetAnnot(), SetCompleteness(), CBioseq_Base::SetInst(), CSeq_feat_Base::SetLocation(), CSeq_feat_Base::SetPartial(), CSeq_entry_Base::SetSeq(), CBioseq_set_Base::SetSeq_set(), and CSeq_entry_Base::SetSet().

◆ MakeProteinForGoodNucProtSet()

Definition at line 1092 of file unit_test_util.cpp.

References AddFeat(), CMolInfo_Base::eBiomol_peptide, CMolInfo_Base::eCompleteness_complete, CSeq_inst_Base::eMol_aa, CSeq_inst_Base::eRepr_raw, CMolInfo_Base::SetBiomol(), CMolInfo_Base::SetCompleteness(), CSeq_feat_Base::SetData(), CBioseq_Base::SetDescr(), CBioseq_Base::SetId(), CBioseq_Base::SetInst(), CSeq_id_Base::SetLocal(), CSeq_feat_Base::SetLocation(), CSeqdesc_Base::SetMolinfo(), CSeq_entry_Base::SetSeq(), and CObject_id_Base::SetStr().

Referenced by AddCdregionToSmallGenomeSet(), AddCDSAndProtForBigGoodNucProtSet(), BOOST_AUTO_TEST_CASE(), and BuildGoodNucProtSet().

◆ MakeSeqLong() ◆ RemoveDbxref() [1/3] ◆ RemoveDbxref() [2/3] ◆ RemoveDbxref() [3/3] ◆ RemoveDeltaSeqGaps() ◆ RemoveDescriptorType() ◆ ResetOrgname() ◆ RetranslateCdsForNucProtSet() ◆ RevComp() [1/3]

Definition at line 1560 of file unit_test_util.cpp.

References EDIT_EACH_SEQFEAT_ON_SEQANNOT, eNa_strand_minus, eNa_strand_plus, NStr::Equal(), CAliasBase< TPrim >::Get(), CBioseq_Base::GetInst(), CSeq_data_Base::GetIupacna(), CBioseq::GetLength(), CSeq_inst_Base::GetSeq_data(), CSeq_data_Base::IsIupacna(), CBioseq::IsNa(), CBioseq_Base::IsSetAnnot(), CBioseq_Base::IsSetInst(), CSeq_inst_Base::IsSetSeq_data(), len, CBioseq_Base::SetAnnot(), and CBioseq_Base::SetInst().

Referenced by RevComp().

◆ RevComp() [2/3]

Definition at line 1626 of file unit_test_util.cpp.

References CBioseq_set_Base::eClass_nuc_prot, EDIT_EACH_SEQFEAT_ON_SEQANNOT, CBioseq_set_Base::GetClass(), CBioseq_set_Base::GetSeq_set(), CSeq_entry_Base::GetSet(), CSeq_entry_Base::IsSeq(), CSeq_entry_Base::IsSet(), CBioseq_set_Base::IsSetClass(), len, RevComp(), CBioseq_set_Base::SetAnnot(), CSeq_entry_Base::SetSeq(), CBioseq_set_Base::SetSeq_set(), and CSeq_entry_Base::SetSet().

◆ RevComp() [3/3] void RevComp ( CSeq_locloc, size_t  len  )

Definition at line 1605 of file unit_test_util.cpp.

References eNa_strand_minus, eNa_strand_plus, CSeq_interval_Base::GetFrom(), CSeq_loc_Base::GetInt(), CSeq_interval_Base::GetStrand(), CSeq_interval_Base::GetTo(), CSeq_loc_Base::IsInt(), CSeq_loc_Base::IsMix(), CSeq_interval_Base::IsSetStrand(), len, NON_CONST_ITERATE, RevComp(), CSeq_loc::SetInt(), and CSeq_loc::SetMix().

◆ ReverseAlignmentStrand() void ReverseAlignmentStrand ( CDense_segdenseg, size_t  pos, size_t  seq_len  )

Definition at line 1827 of file unit_test_util.cpp.

References eNa_strand_minus, eNa_strand_plus, CDense_seg_Base::GetDim(), CDense_seg_Base::GetLens(), CDense_seg_Base::GetNumseg(), CDense_seg_Base::GetStarts(), CDense_seg_Base::GetStrands(), i, CDense_seg_Base::IsSetStrands(), offset, orig, CDense_seg_Base::SetStarts(), and CDense_seg_Base::SetStrands().

◆ SetBiomol() ◆ SetChromosome() [1/2] ◆ SetChromosome() [2/2] ◆ SetCommon() ◆ SetCompleteness()

Definition at line 1049 of file unit_test_util.cpp.

References CMolInfo_Base::eBiomol_genomic, CMolInfo_Base::eBiomol_peptide, CSeq_entry_Base::GetSeq(), CBioseq::IsAa(), CSeq_entry_Base::IsSeq(), NON_CONST_ITERATE, CMolInfo_Base::SetBiomol(), CMolInfo_Base::SetCompleteness(), CBioseq_Base::SetDescr(), CSeqdesc_Base::SetMolinfo(), and CSeq_entry_Base::SetSeq().

Referenced by MakeNucProtSet3Partial(), and SetProteinPartial().

◆ SetDbxref() [1/6] ◆ SetDbxref() [2/6] ◆ SetDbxref() [3/6] ◆ SetDbxref() [4/6] ◆ SetDbxref() [5/6] ◆ SetDbxref() [6/6] ◆ SetDiv() ◆ SetDrosophila_melanogaster() ◆ SetFocus() ◆ SetGcode() ◆ SetGenome() ◆ SetLineage() ◆ SetMGcode() ◆ SetNucProtSetPartials() ◆ SetNucProtSetProductName() ◆ SetOrgMod() [1/2] ◆ SetOrgMod() [2/2] ◆ SetOrigin() ◆ SetPGcode() ◆ SetProteinPartial() ◆ SetSebaea_microphylla() ◆ SetSpliceForMixLoc() void SetSpliceForMixLoc ( CBioseqseq ) ◆ SetSubSource() [1/2] ◆ SetSubSource() [2/2] ◆ SetSynthetic_construct() ◆ SetTaxname() ◆ SetTaxon() [1/2] ◆ SetTaxon() [2/2] ◆ SetTech() ◆ SetTransgenic() [1/2] ◆ SetTransgenic() [2/2] ◆ TraverseAndRunTestCases()

This is for running data-driven test cases below the given top-level test directory.

In a given directory, each file is checked for its prefix and suffix, where the prefix is the part before the first '.' and the suffix is the part after. (e.g. "foo.input.asn" has prefix "foo" and suffix "input.asn"). Files with the same prefix are assumed to belong to the same test.

There can be more than one test case in a test-case descendent dir and test-cases is even permitted to have zero subdirectories and have all the files be at the top level (though this could get messy if you have many test cases)

Any errors are handled through ITestRunner::OnError except for a NULL ITestRunner which, by necessity, is handled by throwing an exception.

Parameters
pTestRunner This class's "RunTest" func is called for each test. dirWithTestCases This is the directory holding the test cases. Sub-directories of this are also checked for test-cases, although hidden subdirectories and files (that is, those starting with a period, such as ".svn") are skipped. setOfRequiredSuffixes Each test must have exactly one file with the given suffix. If any test is missing any required suffix, this function will halt before running any tests. At least one required suffix must be specified. setOfOptionalSuffixes These are the suffixes permitted but not required for each test. setOfIgnoredSuffixes This is the set of suffixes that are just ignored and not passed to the pTestRunner. If a file is found whose suffix is not in one of the "setOf[FOO]Suffixes" parameters, then an error will occur, except that files with prefix "README" are also ignored. fFlags This controls the behavior of the function (usually not needed).

Definition at line 2037 of file unit_test_util.cpp.

References map_checker< Container >::begin(), set< Key, Compare >::begin(), CDirEntry::CreateAbsolutePath(), map_checker< Container >::end(), set< Key, Compare >::end(), ERASE_ITERATE, CDir::Exists(), fFF_File, fFF_Recursive, NStr::Find(), set< Key, Compare >::find(), FindFilesInDir(), fTraverseAndRunTestCasesFlags_DoNOTIgnoreREADMEFiles, CDirEntry::GetPath(), CDirEntry::GetPathSeparator(), CDirEntry::IsDir(), ITERATE, NCBI_USER_THROW_FMT, NPOS, ITestRunner::OnError(), ITestRunner::RunTest(), set< Key, Compare >::size(), NStr::SplitInTwo(), NStr::StartsWith(), string, and transform().

Referenced by BOOST_AUTO_TEST_CASE().


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4