|
ProteoWizard
|
#include "pwiz/utility/misc/unit.hpp"#include "Chemistry.hpp"#include "Ion.hpp"#include "pwiz/utility/math/round.hpp"#include <cstring>#include "pwiz/utility/misc/Std.hpp"#include "boost/thread/thread.hpp"#include "boost/thread/barrier.hpp"Go to the source code of this file.
Classes | |
| struct | TestFormula |
Functions | |
| void | testMassAbundance () |
| void | testFormula () |
| void | testFormulaOperations () |
| void | testInfo () |
| void | infoExample () |
| void | testPolysiloxane () |
| void | testThreadSafetyWorker (boost::barrier *testBarrier, int &result) |
| void | testThreadSafety (const int &testThreadCount) |
| int | main (int argc, char *argv[]) |
Variables | |
| ostream * | os_ = 0 |
| const TestFormula | testFormulaData [] |
| const int | testFormulaDataSize = sizeof(testFormulaData)/sizeof(TestFormula) |
| void testMassAbundance | ( | ) |
Definition at line 41 of file ChemistryTest.cpp.
References pwiz::chemistry::MassAbundance::abundance, and unit_assert.
Referenced by testThreadSafetyWorker().
| void testFormula | ( | ) |
Definition at line 84 of file ChemistryTest.cpp.
References pwiz::chemistry::Formula::data(), pwiz::chemistry::Formula::formula(), pwiz::chemistry::Formula::molecularWeight(), pwiz::chemistry::Formula::monoisotopicMass(), os_, testFormula(), testFormulaData, testFormulaDataSize, unit_assert, and unit_assert_equal.
Referenced by testFormula(), and testThreadSafetyWorker().
| void testFormulaOperations | ( | ) |
Definition at line 144 of file ChemistryTest.cpp.
References C, H, N, O, os_, S, and unit_assert.
Referenced by testThreadSafetyWorker().
| void testInfo | ( | ) |
Definition at line 167 of file ChemistryTest.cpp.
References pwiz::chemistry::Element::Info::Record::atomicNumber, os_, pwiz::chemistry::Element::Info::record(), pwiz::chemistry::Element::Info::Record::symbol, unit_assert, and unit_assert_throws_what.
Referenced by runSpecialTest(), testThreadSafetyWorker(), and validateRecalculation().
| void infoExample | ( | ) |
Definition at line 189 of file ChemistryTest.cpp.
References pwiz::chemistry::Element::Info::Record::isotopes, os_, and pwiz::chemistry::Element::Info::record().
Referenced by testThreadSafetyWorker().
| void testPolysiloxane | ( | ) |
Definition at line 199 of file ChemistryTest.cpp.
References pwiz::chemistry::Formula::molecularWeight(), pwiz::chemistry::Formula::monoisotopicMass(), pwiz::chemistry::Ion::mz(), and os_.
Referenced by testThreadSafetyWorker().
| void testThreadSafetyWorker | ( | boost::barrier * | testBarrier, |
| int & | result | ||
| ) |
Definition at line 214 of file ChemistryTest.cpp.
References infoExample(), testFormula(), testFormulaOperations(), testInfo(), testMassAbundance(), and testPolysiloxane().
Referenced by testThreadSafety().
| void testThreadSafety | ( | const int & | testThreadCount | ) |
Definition at line 240 of file ChemistryTest.cpp.
References testThreadSafetyWorker().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 255 of file ChemistryTest.cpp.
References os_, TEST_EPILOG, TEST_FAILED, TEST_PROLOG, and testThreadSafety().
| ostream* os_ = 0 |
Definition at line 38 of file ChemistryTest.cpp.
Referenced by infoExample(), main(), testFormula(), testFormulaOperations(), testInfo(), and testPolysiloxane().
| const TestFormula testFormulaData[] |
Definition at line 59 of file ChemistryTest.cpp.
Referenced by testFormula().
| const int testFormulaDataSize = sizeof(testFormulaData)/sizeof(TestFormula) |
Definition at line 82 of file ChemistryTest.cpp.
Referenced by testFormula().