NCBI C++ ToolKit
Functions | Variables
unit_test_biosample_util.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbi_system.hpp>
#include <corelib/ncbiapp.hpp>
#include <objects/seq/Seqdesc.hpp>
#include <objtools/unit_test_util/unit_test_util.hpp>
#include <objects/seqfeat/BioSource.hpp>
#include <objects/seqfeat/Org_ref.hpp>
#include <objects/seqfeat/OrgName.hpp>
#include <objects/seqfeat/OrgMod.hpp>
#include <objects/seqfeat/SubSource.hpp>
#include <objects/general/Dbtag.hpp>
#include <objects/general/User_object.hpp>
#include <objmgr/bioseq_ci.hpp>
#include <common/ncbi_export.h>
#include <misc/xmlwrapp/xml_init.hpp>
#include <misc/biosample_util/biosample_util.hpp>
#include <corelib/test_boost.hpp>
+ Include dependency graph for unit_test_biosample_util.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

 USING_SCOPE (objects)
 
 BOOST_AUTO_TEST_CASE (TEST_First)
 
void CheckDiffs (const TFieldDiffList &expected, const TFieldDiffList &observed)
 
 BOOST_AUTO_TEST_CASE (Test_GetBiosampleDiffs)
 
 BOOST_AUTO_TEST_CASE (Test_UpdateWithBioSample)
 
 BOOST_AUTO_TEST_CASE (Test_SQD_1833)
 
 BOOST_AUTO_TEST_CASE (Test_GP_9113)
 
 BOOST_AUTO_TEST_CASE (Test_FuzzyStrainMatch)
 
 BOOST_AUTO_TEST_CASE (Test_SQD_1836)
 
 BOOST_AUTO_TEST_CASE (Test_SQD_1865)
 
 BOOST_AUTO_TEST_CASE (Test_WGS_693)
 
 BOOST_AUTO_TEST_CASE (Test_SQD_2021)
 
 BOOST_AUTO_TEST_CASE (Test_SQD_2022)
 
 BOOST_AUTO_TEST_CASE (Test_SQD_2028)
 
 BOOST_AUTO_TEST_CASE (Test_SQD_2189)
 
void CheckDiff (const CFieldDiff &diff, const string &dname, const string &src_val, const string &sample_val)
 
 BOOST_AUTO_TEST_CASE (Test_GB_7214)
 
void CheckReturnedFields (const biosample_util::TBiosampleFieldDiffList &diff_list, bool expect_response)
 

Variables

 USING_NCBI_SCOPE
 
const string sc_TestSQD1833_Src
 
const string sc_TestSQD1833_Smpl
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/14]

BOOST_AUTO_TEST_CASE ( TEST_First  )

Definition at line 82 of file unit_test_biosample_util.cpp.

References GetBiosampleData().

◆ BOOST_AUTO_TEST_CASE() [2/14]

BOOST_AUTO_TEST_CASE ( Test_FuzzyStrainMatch  )

Definition at line 374 of file unit_test_biosample_util.cpp.

References COrgMod::FuzzyStrainMatch().

◆ BOOST_AUTO_TEST_CASE() [3/14]

BOOST_AUTO_TEST_CASE ( Test_GB_7214  )

◆ BOOST_AUTO_TEST_CASE() [4/14]

BOOST_AUTO_TEST_CASE ( Test_GetBiosampleDiffs  )

◆ BOOST_AUTO_TEST_CASE() [5/14]

BOOST_AUTO_TEST_CASE ( Test_GP_9113  )

◆ BOOST_AUTO_TEST_CASE() [6/14]

BOOST_AUTO_TEST_CASE ( Test_SQD_1833  )

◆ BOOST_AUTO_TEST_CASE() [7/14]

BOOST_AUTO_TEST_CASE ( Test_SQD_1836  )

◆ BOOST_AUTO_TEST_CASE() [8/14]

BOOST_AUTO_TEST_CASE ( Test_SQD_1865  )

◆ BOOST_AUTO_TEST_CASE() [9/14]

BOOST_AUTO_TEST_CASE ( Test_SQD_2021  )

◆ BOOST_AUTO_TEST_CASE() [10/14]

BOOST_AUTO_TEST_CASE ( Test_SQD_2022  )

◆ BOOST_AUTO_TEST_CASE() [11/14]

BOOST_AUTO_TEST_CASE ( Test_SQD_2028  )

◆ BOOST_AUTO_TEST_CASE() [12/14]

BOOST_AUTO_TEST_CASE ( Test_SQD_2189  )

◆ BOOST_AUTO_TEST_CASE() [13/14]

BOOST_AUTO_TEST_CASE ( Test_UpdateWithBioSample  )

◆ BOOST_AUTO_TEST_CASE() [14/14]

BOOST_AUTO_TEST_CASE ( Test_WGS_693  )

◆ CheckDiff()

void CheckDiff ( const CFieldDiff diff,
const string dname,
const string src_val,
const string sample_val 
)

◆ CheckDiffs()

void CheckDiffs ( const TFieldDiffList expected,
const TFieldDiffList observed 
)

Definition at line 88 of file unit_test_biosample_util.cpp.

References expected.

Referenced by BOOST_AUTO_TEST_CASE().

◆ CheckReturnedFields()

void CheckReturnedFields ( const biosample_util::TBiosampleFieldDiffList diff_list,
bool  expect_response 
)

Definition at line 637 of file unit_test_biosample_util.cpp.

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ sc_TestSQD1833_Smpl

const string sc_TestSQD1833_Smpl

Definition at line 261 of file unit_test_biosample_util.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ sc_TestSQD1833_Src

const string sc_TestSQD1833_Src
Initial value:
= "\
BioSource ::= { \
genome genomic, \
org { \
taxname \"Escherichia coli\", \
db { \
{ \
db \"taxon\", \
tag id 562 \
} \
}, \
orgname { \
name binomial { \
genus \"Escherichia\", \
species \"coli\" \
}, \
lineage \"Bacteria; Proteobacteria; Gammaproteobacteria; \
Enterobacteriales; Enterobacteriaceae; Escherichia\", \
gcode 11, \
div \"BCT\" \
} \
} \
} \
"

Definition at line 235 of file unit_test_biosample_util.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 65 of file unit_test_biosample_util.cpp.

Modified on Tue Jun 18 13:41:33 2024 by modify_doxy.py rev. 669887