46{
48
49 #ifdef PWIZ_READER_ABI
50 const bool testAcceptOnly = false;
51 #else
52 const bool testAcceptOnly = true;
53 #endif
54
55 try
56 {
57 #ifdef PWIZ_READER_ABI
58
61 using namespace pwiz::msdata::detail::ABI;
63
64
65 bool allInstrumentTestsPassed = true;
66 for (int i = 1; i < (int) InstrumentModel_Count; ++i)
67 {
68 InstrumentModel model = (InstrumentModel) i;
69
70 try
71 {
73
75
79 }
80 catch (runtime_error& e)
81 {
82 cerr << "Unit test failed for instrument model " << lexical_cast<string>(model) << ":\n" << e.what() << endl;
83 allInstrumentTestsPassed = false;
84 }
85 }
86
88 #endif
89
90 bool requireUnicodeSupport = true;
92 }
93 catch (exception& e)
94 {
96 }
97 catch (...)
98 {
100 }
101
103}
MS_quadrupole
quadrupole: A mass spectrometer that consists of four parallel rods whose centers form the corners of...
MS_electron_multiplier
electron multiplier: A device to amplify the current of a beam or packet of charged particles or phot...
MS_ionization_type
ionization type: The method by which gas phase ions are generated from the sample.
PWIZ_API_DECL CVID translateAsInstrumentModel(InstrumentModelType instrumentModelType)
boost::shared_ptr< InstrumentConfiguration > InstrumentConfigurationPtr
PWIZ_API_DECL int testReader(const pwiz::msdata::Reader &reader, const std::vector< std::string > &args, bool testAcceptOnly, bool requireUnicodeSupport, const TestPathPredicate &isPathTestable, const ReaderTestConfig &config=ReaderTestConfig())
A common test harness for vendor readers;.
#define TEST_PROLOG(argc, argv)