COPASI API
4.16.103
|
#include <test000059.h>
Public Member Functions | |
void | setUp () |
void | tearDown () |
void | test_unique_id_1 () |
void | test_unique_id_10 () |
void | test_unique_id_11 () |
void | test_unique_id_12 () |
void | test_unique_id_13 () |
void | test_unique_id_14 () |
void | test_unique_id_15 () |
void | test_unique_id_16 () |
void | test_unique_id_17 () |
void | test_unique_id_18 () |
void | test_unique_id_19 () |
void | test_unique_id_2 () |
void | test_unique_id_20 () |
void | test_unique_id_21 () |
void | test_unique_id_21_2 () |
void | test_unique_id_22 () |
void | test_unique_id_3 () |
void | test_unique_id_4 () |
void | test_unique_id_5 () |
void | test_unique_id_6 () |
void | test_unique_id_7 () |
void | test_unique_id_8 () |
void | test_unique_id_9 () |
Static Public Member Functions | |
static bool | checkIfIdsUnique (const Model *pSBMLModel) |
Static Protected Attributes | |
static const char * | MODEL_STRING1 |
static const char * | MODEL_STRING10 |
static const char * | MODEL_STRING11 |
static const char * | MODEL_STRING12 |
static const char * | MODEL_STRING13 |
static const char * | MODEL_STRING14 |
static const char * | MODEL_STRING15 |
static const char * | MODEL_STRING16 |
static const char * | MODEL_STRING17 |
static const char * | MODEL_STRING18 |
static const char * | MODEL_STRING19 |
static const char * | MODEL_STRING2 |
static const char * | MODEL_STRING20 |
static const char * | MODEL_STRING21 |
static const char * | MODEL_STRING22 |
static const char * | MODEL_STRING3 |
static const char * | MODEL_STRING4 |
static const char * | MODEL_STRING5 |
static const char * | MODEL_STRING6 |
static const char * | MODEL_STRING7 |
static const char * | MODEL_STRING8 |
static const char * | MODEL_STRING9 |
static CCopasiDataModel * | pCOPASIDATAMODEL = NULL |
These tests check if all elements in an SBML model get unique ids on export, even if one element that has been exported before has an id that might potentially be assigned to a different element that is exported later. e.g. a species being named "reaction_2" These tests assume a certain order for the export of elements.
Definition at line 34 of file test000059.h.
|
static |
Definition at line 44 of file test000059.cpp.
Referenced by test000067::test_bug1060(), test_unique_id_1(), test_unique_id_10(), test_unique_id_11(), test_unique_id_12(), test_unique_id_13(), test_unique_id_14(), test_unique_id_15(), test_unique_id_16(), test_unique_id_17(), test_unique_id_18(), test_unique_id_19(), test_unique_id_2(), test_unique_id_20(), test_unique_id_21(), test_unique_id_21_2(), test_unique_id_22(), test_unique_id_3(), test_unique_id_4(), test_unique_id_5(), test_unique_id_6(), test_unique_id_7(), test_unique_id_8(), and test_unique_id_9().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void test000059::setUp | ( | ) |
Definition at line 31 of file test000059.cpp.
References CCopasiRootContainer::addDatamodel(), CCopasiRootContainer::init(), and pCOPASIDATAMODEL.
void test000059::tearDown | ( | ) |
void test000059::test_unique_id_1 | ( | ) |
Definition at line 545 of file test000059.cpp.
References checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING1, and pCOPASIDATAMODEL.
void test000059::test_unique_id_10 | ( | ) |
Definition at line 953 of file test000059.cpp.
References CReaction::addProduct(), checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiDataModel::getModel(), CCopasiParameterGroup::getParameter(), CReaction::getParameters(), CCopasiParameter::getValueReference(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING10, pCOPASIDATAMODEL, CReaction::setFunction(), and CReaction::setParameterValue().
void test000059::test_unique_id_11 | ( | ) |
Definition at line 999 of file test000059.cpp.
References CModel::buildInitialRefreshSequence(), checkIfIdsUnique(), CModel::compileIfNecessary(), CModel::createMetabolite(), CCopasiDataModel::exportSBMLToString(), CModelEntity::FIXED, CCopasiDataModel::getCurrentSBMLDocument(), CMetab::getInitialConcentrationReference(), CCopasiDataModel::getModel(), load_cps_model_from_stream(), MODEL_STRING11, and pCOPASIDATAMODEL.
void test000059::test_unique_id_12 | ( | ) |
Definition at line 1038 of file test000059.cpp.
References CModel::buildInitialRefreshSequence(), checkIfIdsUnique(), CModel::compileIfNecessary(), CModel::createModelValue(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), load_cps_model_from_stream(), MODEL_STRING12, and pCOPASIDATAMODEL.
void test000059::test_unique_id_13 | ( | ) |
Definition at line 1077 of file test000059.cpp.
References CReaction::addProduct(), CModel::buildInitialRefreshSequence(), checkIfIdsUnique(), CModel::compileIfNecessary(), CModel::createReaction(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiObject::getKey(), CModel::getMetabolites(), CCopasiDataModel::getModel(), CCopasiParameterGroup::getParameter(), CReaction::getParameters(), CCopasiParameter::getValueReference(), load_cps_model_from_stream(), MODEL_STRING13, pCOPASIDATAMODEL, CReaction::setFunction(), and CReaction::setParameterValue().
void test000059::test_unique_id_14 | ( | ) |
Definition at line 1117 of file test000059.cpp.
References CModel::buildInitialRefreshSequence(), checkIfIdsUnique(), CModel::compileIfNecessary(), CModel::createModelValue(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), load_cps_model_from_stream(), MODEL_STRING14, and pCOPASIDATAMODEL.
void test000059::test_unique_id_15 | ( | ) |
Definition at line 1156 of file test000059.cpp.
References CReaction::addProduct(), CModel::buildInitialRefreshSequence(), checkIfIdsUnique(), CModel::compileIfNecessary(), CModel::createReaction(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiObject::getKey(), CModel::getMetabolites(), CCopasiDataModel::getModel(), CCopasiParameterGroup::getParameter(), CReaction::getParameters(), CCopasiParameter::getValueReference(), load_cps_model_from_stream(), MODEL_STRING15, pCOPASIDATAMODEL, CReaction::setFunction(), and CReaction::setParameterValue().
void test000059::test_unique_id_16 | ( | ) |
Definition at line 1196 of file test000059.cpp.
References CReaction::addProduct(), CModel::buildInitialRefreshSequence(), checkIfIdsUnique(), CModel::compileIfNecessary(), CModel::createReaction(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiObject::getKey(), CModel::getMetabolites(), CCopasiDataModel::getModel(), CCopasiParameterGroup::getParameter(), CReaction::getParameters(), CCopasiParameter::getValueReference(), load_cps_model_from_stream(), MODEL_STRING16, pCOPASIDATAMODEL, CReaction::setFunction(), and CReaction::setParameterValue().
void test000059::test_unique_id_17 | ( | ) |
Definition at line 1236 of file test000059.cpp.
References CFunctionDB::addAndAdaptName(), CModelEntity::ASSIGNMENT, checkIfIdsUnique(), CEvaluationTree::compile(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiRootContainer::getFunctionList(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING17, pCOPASIDATAMODEL, CModelEntity::setExpression(), CFunction::setInfix(), and CModelEntity::setStatus().
void test000059::test_unique_id_18 | ( | ) |
Definition at line 1291 of file test000059.cpp.
References CFunctionDB::addAndAdaptName(), CModelEntity::ASSIGNMENT, checkIfIdsUnique(), CEvaluationTree::compile(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiRootContainer::getFunctionList(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING18, pCOPASIDATAMODEL, CModelEntity::setExpression(), CFunction::setInfix(), and CModelEntity::setStatus().
void test000059::test_unique_id_19 | ( | ) |
Definition at line 1346 of file test000059.cpp.
References CFunctionDB::addAndAdaptName(), CModelEntity::ASSIGNMENT, checkIfIdsUnique(), CEvaluationTree::compile(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiRootContainer::getFunctionList(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING19, pCOPASIDATAMODEL, CModelEntity::setExpression(), CFunction::setInfix(), and CModelEntity::setStatus().
void test000059::test_unique_id_2 | ( | ) |
Definition at line 590 of file test000059.cpp.
References checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CModelEntity::FIXED, CCopasiDataModel::getCurrentSBMLDocument(), CMetab::getInitialConcentrationReference(), CCopasiDataModel::getModel(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING2, and pCOPASIDATAMODEL.
void test000059::test_unique_id_20 | ( | ) |
Definition at line 1401 of file test000059.cpp.
References CFunctionDB::addAndAdaptName(), CModelEntity::ASSIGNMENT, checkIfIdsUnique(), CEvaluationTree::compile(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiRootContainer::getFunctionList(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING20, pCOPASIDATAMODEL, CModelEntity::setExpression(), CFunction::setInfix(), and CModelEntity::setStatus().
void test000059::test_unique_id_21 | ( | ) |
Test for Bug 1060.
Definition at line 1459 of file test000059.cpp.
References CFunctionDB::addAndAdaptName(), CModelEntity::ASSIGNMENT, checkIfIdsUnique(), CEvaluationTree::compile(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiRootContainer::getFunctionList(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), load_cps_model_from_stream(), MODEL_STRING21, pCOPASIDATAMODEL, CModelEntity::setExpression(), CFunction::setInfix(), and CModelEntity::setStatus().
void test000059::test_unique_id_21_2 | ( | ) |
Same test as the test before, only the newly added function definition has a different name.
Definition at line 1510 of file test000059.cpp.
References CFunctionDB::addAndAdaptName(), CModelEntity::ASSIGNMENT, checkIfIdsUnique(), CEvaluationTree::compile(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiRootContainer::getFunctionList(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiObject::getObjectName(), load_cps_model_from_stream(), MODEL_STRING21, pCOPASIDATAMODEL, CModelEntity::setExpression(), CFunction::setInfix(), and CModelEntity::setStatus().
void test000059::test_unique_id_22 | ( | ) |
Definition at line 1557 of file test000059.cpp.
References checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiDataModel::getModel(), CCopasiDataModel::importSBMLFromString(), load_cps_model_from_stream(), MODEL_STRING22, and pCOPASIDATAMODEL.
void test000059::test_unique_id_3 | ( | ) |
Definition at line 635 of file test000059.cpp.
References checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING3, and pCOPASIDATAMODEL.
void test000059::test_unique_id_4 | ( | ) |
Definition at line 680 of file test000059.cpp.
References CReaction::addProduct(), checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiDataModel::getModel(), CCopasiParameterGroup::getParameter(), CReaction::getParameters(), CCopasiParameter::getValueReference(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING4, pCOPASIDATAMODEL, CReaction::setFunction(), and CReaction::setParameterValue().
void test000059::test_unique_id_5 | ( | ) |
Definition at line 726 of file test000059.cpp.
References checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CModelEntity::FIXED, CCopasiDataModel::getCurrentSBMLDocument(), CMetab::getInitialConcentrationReference(), CCopasiDataModel::getModel(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING5, and pCOPASIDATAMODEL.
void test000059::test_unique_id_6 | ( | ) |
Definition at line 771 of file test000059.cpp.
References checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING6, and pCOPASIDATAMODEL.
void test000059::test_unique_id_7 | ( | ) |
Definition at line 816 of file test000059.cpp.
References CReaction::addProduct(), checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiDataModel::getModel(), CCopasiParameterGroup::getParameter(), CReaction::getParameters(), CCopasiParameter::getValueReference(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING7, pCOPASIDATAMODEL, CReaction::setFunction(), and CReaction::setParameterValue().
void test000059::test_unique_id_8 | ( | ) |
Definition at line 862 of file test000059.cpp.
References checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CModelEntity::getInitialValueReference(), CCopasiDataModel::getModel(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING8, and pCOPASIDATAMODEL.
void test000059::test_unique_id_9 | ( | ) |
Definition at line 907 of file test000059.cpp.
References CReaction::addProduct(), checkIfIdsUnique(), CCopasiDataModel::exportSBMLToString(), CCopasiDataModel::getCurrentSBMLDocument(), CCopasiDataModel::getModel(), CCopasiParameterGroup::getParameter(), CReaction::getParameters(), CCopasiParameter::getValueReference(), CCopasiDataModel::importSBMLFromString(), MODEL_STRING9, pCOPASIDATAMODEL, CReaction::setFunction(), and CReaction::setParameterValue().
|
staticprotected |
Definition at line 63 of file test000059.h.
Referenced by test_unique_id_1().
|
staticprotected |
Definition at line 72 of file test000059.h.
Referenced by test_unique_id_10().
|
staticprotected |
Definition at line 73 of file test000059.h.
Referenced by test_unique_id_11().
|
staticprotected |
Definition at line 74 of file test000059.h.
Referenced by test_unique_id_12().
|
staticprotected |
Definition at line 75 of file test000059.h.
Referenced by test_unique_id_13().
|
staticprotected |
Definition at line 76 of file test000059.h.
Referenced by test_unique_id_14().
|
staticprotected |
Definition at line 77 of file test000059.h.
Referenced by test_unique_id_15().
|
staticprotected |
Definition at line 78 of file test000059.h.
Referenced by test_unique_id_16().
|
staticprotected |
Definition at line 79 of file test000059.h.
Referenced by test_unique_id_17().
|
staticprotected |
Definition at line 80 of file test000059.h.
Referenced by test_unique_id_18().
|
staticprotected |
Definition at line 81 of file test000059.h.
Referenced by test_unique_id_19().
|
staticprotected |
Definition at line 64 of file test000059.h.
Referenced by test_unique_id_2().
|
staticprotected |
Definition at line 82 of file test000059.h.
Referenced by test_unique_id_20().
|
staticprotected |
Definition at line 83 of file test000059.h.
Referenced by test_unique_id_21(), and test_unique_id_21_2().
|
staticprotected |
Definition at line 84 of file test000059.h.
Referenced by test_unique_id_22().
|
staticprotected |
Definition at line 65 of file test000059.h.
Referenced by test_unique_id_3().
|
staticprotected |
Definition at line 66 of file test000059.h.
Referenced by test_unique_id_4().
|
staticprotected |
Definition at line 67 of file test000059.h.
Referenced by test_unique_id_5().
|
staticprotected |
Definition at line 68 of file test000059.h.
Referenced by test_unique_id_6().
|
staticprotected |
Definition at line 69 of file test000059.h.
Referenced by test_unique_id_7().
|
staticprotected |
Definition at line 70 of file test000059.h.
Referenced by test_unique_id_8().
|
staticprotected |
Definition at line 71 of file test000059.h.
Referenced by test_unique_id_9().
|
staticprotected |
Definition at line 85 of file test000059.h.
Referenced by setUp(), test_unique_id_1(), test_unique_id_10(), test_unique_id_11(), test_unique_id_12(), test_unique_id_13(), test_unique_id_14(), test_unique_id_15(), test_unique_id_16(), test_unique_id_17(), test_unique_id_18(), test_unique_id_19(), test_unique_id_2(), test_unique_id_20(), test_unique_id_21(), test_unique_id_21_2(), test_unique_id_22(), test_unique_id_3(), test_unique_id_4(), test_unique_id_5(), test_unique_id_6(), test_unique_id_7(), test_unique_id_8(), and test_unique_id_9().