ProteoWizard
Reader_ABI_T2D_Test.cpp
Go to the documentation of this file.
1 //
2 // $Id: Reader_ABI_T2D_Test.cpp 4129 2012-11-20 00:05:37Z chambm $
3 //
4 //
5 // Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
6 //
7 // Copyright 2010 Vanderbilt University - Nashville, TN 37232
8 //
9 // Licensed under the Apache License, Version 2.0 (the "License");
10 // you may not use this file except in compliance with the License.
11 // You may obtain a copy of the License at
12 //
13 // http://www.apache.org/licenses/LICENSE-2.0
14 //
15 // Unless required by applicable law or agreed to in writing, software
16 // distributed under the License is distributed on an "AS IS" BASIS,
17 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 // See the License for the specific language governing permissions and
19 // limitations under the License.
20 //
21 
22 
24 #include "Reader_ABI_T2D.hpp"
28 
30 {
31  bool operator() (const string& datapath) const
32  {
33  vector<bfs::path> t2d_filepaths;
34  pwiz::util::expand_pathmask(bfs::path(datapath) / "*.t2d", t2d_filepaths);
35  return !t2d_filepaths.empty();
36  }
37 };
38 
39 int main(int argc, char* argv[])
40 {
41  TEST_PROLOG(argc, argv)
42 
43  #ifdef PWIZ_READER_ABI_T2D
44  const bool testAcceptOnly = false;
45  #else
46  const bool testAcceptOnly = true;
47  #endif
48 
49  try
50  {
52  }
53  catch (exception& e)
54  {
55  TEST_FAILED(e.what())
56  }
57  catch (...)
58  {
59  TEST_FAILED("Caught unknown exception.")
60  }
61 
63 }