NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <objects/seqfeat/BioSource.hpp>
#include <objects/seqfeat/Org_ref.hpp>
#include <objects/seqfeat/SubSource.hpp>
#include <objects/seqfeat/OrgMod.hpp>
#include <objects/seqfeat/OrgName.hpp>
#include <corelib/test_boost.hpp>
#include <gui/objutils/macro_util.hpp>
#include <gui/objutils/macro_fn_aecr.hpp>
#include <gui/objutils/macro_fn_lookup.hpp>
#include <gui/objutils/macro_fn_feature.hpp>
#include <gui/objutils/macro_fn_pubfields.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Functions | |
USING_SCOPE (objects) | |
USING_SCOPE (macro) | |
NCBITEST_AUTO_INIT () | |
NCBITEST_AUTO_FINI () | |
template<class T > | |
string | MakeAsn (const T &object) |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_TaxnameCorrections) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_Taxon1) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_Taxon2) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_Taxon3) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_Taxon4) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_SpeciesSpecific1) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_SpeciesSpecific2) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_SpeciesSpecific3) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_SpeciesSpecific4) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_SpeciesSpecific_Misspelled) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_NoteInPlace) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_NotSpeciesSpecific1) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_NotSpeciesSpecific2) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_NotSpeciesSpecific3) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_OrgModQualifiers) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_UniversalPrimers1) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_UniversalPrimers2) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_NoTaxId1) | |
BOOST_AUTO_TEST_CASE (Test_UncultTaxTool_NoTaxId2) | |
BOOST_AUTO_TEST_CASE (Test_CulturedTaxTool_TaxnameCorrections) | |
Variables | |
USING_NCBI_SCOPE | |
static const string | uncultured_taxnames [] |
static const string | uncultured_suggestions [] |
BOOST_AUTO_TEST_CASE | ( | Test_CulturedTaxTool_TaxnameCorrections | ) |
Definition at line 614 of file unit_test_uncultured_taxlookup.cpp.
References CCulturedTool::CorrectBioSource(), COrgMod_Base::eSubtype_other, CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_NoTaxId1 | ) |
Definition at line 572 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource_Base::GetSubtype(), CBioSource::GetTaxname(), CBioSource_Base::IsSetSubtype(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_NoTaxId2 | ) |
Definition at line 593 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource_Base::GetSubtype(), CBioSource::GetTaxname(), CBioSource_Base::IsSetSubtype(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_NoteInPlace | ) |
Definition at line 426 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, MakeAsn(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_NotSpeciesSpecific1 | ) |
Definition at line 455 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_NotSpeciesSpecific2 | ) |
Definition at line 475 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_NotSpeciesSpecific3 | ) |
Definition at line 495 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), CBioSource_Base::SetSubtype(), and TAX_ID_CONST.
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_OrgModQualifiers | ) |
Definition at line 516 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), COrgMod_Base::eSubtype_isolate, COrgMod_Base::eSubtype_nat_host, COrgName_Base::GetMod(), CBioSource::GetOrgname(), CBioSource::GetTaxname(), CBioSource::IsSetOrgMod(), Ref(), and CBioSource_Base::SetOrg().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_SpeciesSpecific1 | ) |
Definition at line 274 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, MakeAsn(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_SpeciesSpecific2 | ) |
Definition at line 307 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, MakeAsn(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_SpeciesSpecific3 | ) |
Definition at line 340 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_environmental_sample, CSubSource_Base::eSubtype_other, kEmptyStr, MakeAsn(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_SpeciesSpecific4 | ) |
Definition at line 374 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), CBioSource_Base::IsSetSubtype(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_SpeciesSpecific_Misspelled | ) |
Definition at line 393 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, MakeAsn(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_TaxnameCorrections | ) |
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_Taxon1 | ) |
Definition at line 198 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), CBioSource_Base::SetSubtype(), and TAX_ID_CONST.
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_Taxon2 | ) |
Definition at line 217 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), CBioSource_Base::SetSubtype(), and TAX_ID_CONST.
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_Taxon3 | ) |
Definition at line 236 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), CBioSource_Base::SetSubtype(), and TAX_ID_CONST.
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_Taxon4 | ) |
Definition at line 255 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), CBioSource_Base::SetSubtype(), and TAX_ID_CONST.
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_UniversalPrimers1 | ) |
Definition at line 536 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
BOOST_AUTO_TEST_CASE | ( | Test_UncultTaxTool_UniversalPrimers2 | ) |
Definition at line 554 of file unit_test_uncultured_taxlookup.cpp.
References CUnculturedTool::CorrectBioSource(), CSubSource_Base::eSubtype_other, CBioSource::GetTaxname(), Ref(), CBioSource_Base::SetOrg(), and CBioSource_Base::SetSubtype().
Definition at line 169 of file unit_test_uncultured_taxlookup.cpp.
References MSerial_AsnText, and str().
Referenced by BOOST_AUTO_TEST_CASE().
NCBITEST_AUTO_FINI | ( | ) |
Definition at line 56 of file unit_test_uncultured_taxlookup.cpp.
NCBITEST_AUTO_INIT | ( | ) |
Definition at line 52 of file unit_test_uncultured_taxlookup.cpp.
USING_SCOPE | ( | macro | ) |
USING_SCOPE | ( | objects | ) |
Definition at line 114 of file unit_test_uncultured_taxlookup.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
Definition at line 60 of file unit_test_uncultured_taxlookup.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
USING_NCBI_SCOPE |
Definition at line 48 of file unit_test_uncultured_taxlookup.cpp.