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) |
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 71 of file ChemistryTest.cpp.
References TestFormula::avgMass, C, pwiz::chemistry::Formula::data(), TestFormula::formula, pwiz::chemistry::Formula::molecularWeight(), pwiz::chemistry::Formula::monoisotopicMass(), TestFormula::monoMass, os_, testFormulaData, testFormulaDataSize, U, unit_assert, and unit_assert_equal.
Referenced by testThreadSafetyWorker().
void testFormulaOperations | ( | ) |
Definition at line 131 of file ChemistryTest.cpp.
References C, H, N, O, os_, S, and unit_assert.
Referenced by testThreadSafetyWorker().
void testInfo | ( | ) |
Definition at line 154 of file ChemistryTest.cpp.
References C, Ca, e(), H, os_, pwiz::proteome::AminoAcid::Info::record(), pwiz::proteome::AminoAcid::Info::Record::symbol, U, unit_assert, and unit_assert_throws_what.
Referenced by runSpecialTest(), and testThreadSafetyWorker().
void infoExample | ( | ) |
Definition at line 176 of file ChemistryTest.cpp.
References os_, pwiz::proteome::AminoAcid::Info::record(), and S.
Referenced by testThreadSafetyWorker().
void testPolysiloxane | ( | ) |
Definition at line 186 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 | ) |
Definition at line 201 of file ChemistryTest.cpp.
References e(), infoExample(), testFormula(), testFormulaOperations(), testInfo(), testMassAbundance(), and testPolysiloxane().
void testThreadSafety | ( | const int & | testThreadCount | ) |
Definition at line 224 of file ChemistryTest.cpp.
References testThreadSafetyWorker().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 234 of file ChemistryTest.cpp.
References e(), os_, TEST_EPILOG, TEST_FAILED, TEST_PROLOG, and testThreadSafety().
ostream* os_ = 0 |
Definition at line 38 of file ChemistryTest.cpp.
const TestFormula testFormulaData[] |
Definition at line 59 of file ChemistryTest.cpp.
Referenced by testFormula().
const int testFormulaDataSize = sizeof(testFormulaData)/sizeof(TestFormula) |
Definition at line 69 of file ChemistryTest.cpp.
Referenced by testFormula().