ProteoWizard
|
#include "diff_std.hpp"
#include "pwiz/utility/misc/unit.hpp"
#include "pwiz/utility/misc/Std.hpp"
#include <cstring>
Go to the source code of this file.
Macros | |
#define | PWIZ_SOURCE |
Functions | |
void | testString (const string &a, const string &b) |
template<typename integral_type > | |
void | testIntegralReally (integral_type a, integral_type b) |
template<typename integral_type > | |
void | testIntegral () |
template<typename floating_type > | |
void | testFloating (floating_type a, floating_type b, floating_type precision) |
void | testCV () |
void | testUserParam () |
void | testCVParam () |
void | testParamContainer () |
void | testParamGroup () |
void | test () |
int | main (int argc, char *argv[]) |
Variables | |
ostream * | os_ = 0 |
#define PWIZ_SOURCE |
Definition at line 23 of file diff_std_test.cpp.
void testString | ( | const string & | a, |
const string & | b | ||
) |
Definition at line 37 of file diff_std_test.cpp.
References pwiz::data::diff_string(), os_, and unit_assert.
Referenced by test().
void testIntegralReally | ( | integral_type | a, |
integral_type | b | ||
) |
Definition at line 52 of file diff_std_test.cpp.
References pwiz::data::diff_impl::diff_integral(), os_, and unit_assert.
void testIntegral | ( | ) |
Definition at line 65 of file diff_std_test.cpp.
void testFloating | ( | floating_type | a, |
floating_type | b, | ||
floating_type | precision | ||
) |
Definition at line 75 of file diff_std_test.cpp.
References pwiz::data::diff_impl::diff_floating(), epsilon, pwiz::data::BaseDiffConfig::precision, and unit_assert.
void testCV | ( | ) |
Definition at line 88 of file diff_std_test.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, diff(), pwiz::cv::CV::empty(), pwiz::cv::CV::fullName, pwiz::cv::CV::id, os_, unit_assert, pwiz::cv::CV::URI, and pwiz::cv::CV::version.
Referenced by test().
void testUserParam | ( | ) |
Definition at line 119 of file diff_std_test.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, diff(), pwiz::data::UserParam::empty(), pwiz::data::UserParam::name, os_, pwiz::data::UserParam::type, unit_assert, pwiz::data::UserParam::units, UO_minute, UO_second, and pwiz::data::UserParam::value.
Referenced by test().
void testCVParam | ( | ) |
Definition at line 149 of file diff_std_test.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::CVParam::cvid, diff(), pwiz::data::CVParam::empty(), MS_ionization_type, os_, unit_assert, and pwiz::data::CVParam::value.
Referenced by test().
void testParamContainer | ( | ) |
Definition at line 203 of file diff_std_test.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::ParamContainer::cvParams, diff(), MS_charge_state, MS_m_z, MS_peak_intensity, os_, pwiz::data::ParamContainer::paramGroupPtrs, unit_assert, and pwiz::data::ParamContainer::userParams.
Referenced by main(), and test().
void testParamGroup | ( | ) |
Definition at line 250 of file diff_std_test.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, diff(), os_, unit_assert, and pwiz::data::ParamContainer::userParams.
Referenced by test().
void test | ( | ) |
Definition at line 275 of file diff_std_test.cpp.
References e(), testCV(), testCVParam(), testParamContainer(), testParamGroup(), testString(), and testUserParam().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 304 of file diff_std_test.cpp.
References e(), os_, test(), TEST_EPILOG, TEST_FAILED, and TEST_PROLOG.
ostream* os_ = 0 |
Definition at line 35 of file diff_std_test.cpp.