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 }

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

pwiz::msdata::Reader::Config::combineIonMobilitySpectra
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
pwiz::util::ReaderTestConfig
Definition: VendorReaderTestHarness.hpp:45
TEST_EPILOG
#define TEST_EPILOG
Definition: unit.hpp:183
IsRawData
Definition: Reader_Waters_Test.cpp:30
TEST_FAILED
#define TEST_FAILED(x)
Definition: unit.hpp:177
TEST_PROLOG
#define TEST_PROLOG(argc, argv)
Definition: unit.hpp:175
IsIMSData
Definition: Reader_Waters_Test.cpp:39
pwiz::msdata::Reader_Waters
Definition: Reader_Waters.hpp:42
pwiz::util::testReader
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;.