29 #ifdef PWIZ_READER_ABI 37 return bal::to_lower_copy(
BFS_STRING(bfs::path(rawpath).extension())) ==
".wiff";
41 int main(
int argc,
char* argv[])
45 #ifdef PWIZ_READER_ABI 46 const bool testAcceptOnly =
false;
48 const bool testAcceptOnly =
true;
53 #ifdef PWIZ_READER_ABI 57 using namespace pwiz::msdata::detail::ABI;
61 bool allInstrumentTestsPassed =
true;
62 for (
int i = 1; i < (int) InstrumentModel_Count; ++i)
64 InstrumentModel model = (InstrumentModel) i;
76 catch (runtime_error& e)
78 cerr <<
"Unit test failed for instrument model " <<
lexical_cast<
string>(model) <<
":\n" << e.what() << endl;
79 allInstrumentTestsPassed =
false;
86 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...
float lexical_cast(const std::string &str)
bool operator()(const string &rawpath) const
returns true iff the given rawpath is a real path to test/generate
PWIZ_API_DECL int testReader(const pwiz::msdata::Reader &reader, const std::vector< std::string > &args, bool testAcceptOnly, bool requireUnicodeSupport, const TestPathPredicate &isPathTestable)
A common test harness for vendor readers;.
MS_ionization_type
ionization type: The method by which gas phase ions are generated from the sample.
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...