ProteoWizard
Classes | Functions
Reader_Waters_Test.cpp File Reference
#include "pwiz/utility/misc/unit.hpp"
#include "Reader_Waters.hpp"
#include "pwiz/utility/misc/VendorReaderTestHarness.hpp"
#include "pwiz/utility/misc/Filesystem.hpp"
#include "pwiz/utility/misc/Std.hpp"

Go to the source code of this file.

Classes

struct  IsRawData
 
struct  IsIMSData
 

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 48 of file Reader_Waters_Test.cpp.

49{
50 TEST_PROLOG(argc, argv)
51
52 #ifdef PWIZ_READER_WATERS
53 const bool testAcceptOnly = false;
54 #else
55 const bool testAcceptOnly = true;
56 #endif
57
58 try
59 {
60 bool requireUnicodeSupport = false;
61
64 pwiz::util::testReader(reader, testArgs, testAcceptOnly, requireUnicodeSupport, IsRawData(), config);
65
66 config.combineIonMobilitySpectra = true;
67 pwiz::util::testReader(reader, testArgs, testAcceptOnly, requireUnicodeSupport, IsIMSData(), config);
68 }
69 catch (exception& e)
70 {
71 TEST_FAILED(e.what())
72 }
73 catch (...)
74 {
75 TEST_FAILED("Caught unknown exception.")
76 }
77
79}
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;.
bool combineIonMobilitySpectra
when true, all drift bins/scans in a frame/block are written in combined form instead of as individua...
Definition Reader.hpp:59
#define TEST_EPILOG
Definition unit.hpp:183
#define TEST_FAILED(x)
Definition unit.hpp:177
#define TEST_PROLOG(argc, argv)
Definition unit.hpp:175

References pwiz::msdata::Reader::Config::combineIonMobilitySpectra, TEST_EPILOG, TEST_FAILED, TEST_PROLOG, and pwiz::util::testReader().