29 #ifdef PWIZ_READER_ABI 37 return bal::iends_with(rawpath,
".wiff")
39 || bal::iends_with(rawpath,
".wiff2")
45 int main(
int argc,
char* argv[])
49 #ifdef PWIZ_READER_ABI 50 const bool testAcceptOnly =
false;
52 const bool testAcceptOnly =
true;
57 #ifdef PWIZ_READER_ABI 61 using namespace pwiz::msdata::detail::ABI;
65 bool allInstrumentTestsPassed =
true;
66 for (
int i = 1; i < (int) InstrumentModel_Count; ++i)
68 InstrumentModel model = (InstrumentModel) i;
80 catch (runtime_error& e)
82 cerr <<
"Unit test failed for instrument model " <<
lexical_cast<
string>(model) <<
":\n" << e.what() << endl;
83 allInstrumentTestsPassed =
false;
90 bool requireUnicodeSupport =
true;
PWIZ_API_DECL CVID translateAsInstrumentModel(InstrumentModelType instrumentModelType)
int main(int argc, char *argv[])
MS_electron_multiplier
electron multiplier: A device to amplify the current of a beam or packet of charged particles or phot...
bool operator()(const string &rawpath) const
returns true iff the given rawpath is a real path to test/generate
toType lexical_cast(const std::string &str, bool &success)
MS_ionization_type
ionization type: The method by which gas phase ions are generated from the sample.
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;.
boost::shared_ptr< InstrumentConfiguration > InstrumentConfigurationPtr
test implementations derive from this to define which paths should be tested
#define TEST_PROLOG(argc, argv)
MS_quadrupole
quadrupole: A mass spectrometer that consists of four parallel rods whose centers form the corners of...