4045 |
01 Mar 21 |
peter |
// $Id$ |
4045 |
01 Mar 21 |
peter |
2 |
|
4045 |
01 Mar 21 |
peter |
3 |
/* |
4045 |
01 Mar 21 |
peter |
Copyright (C) 2021 Peter Johansson |
4045 |
01 Mar 21 |
peter |
5 |
|
4045 |
01 Mar 21 |
peter |
This file is part of the yat library, http://dev.thep.lu.se/yat |
4045 |
01 Mar 21 |
peter |
7 |
|
4045 |
01 Mar 21 |
peter |
The yat library is free software; you can redistribute it and/or |
4045 |
01 Mar 21 |
peter |
modify it under the terms of the GNU General Public License as |
4045 |
01 Mar 21 |
peter |
published by the Free Software Foundation; either version 3 of the |
4045 |
01 Mar 21 |
peter |
License, or (at your option) any later version. |
4045 |
01 Mar 21 |
peter |
12 |
|
4045 |
01 Mar 21 |
peter |
The yat library is distributed in the hope that it will be useful, |
4045 |
01 Mar 21 |
peter |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
4045 |
01 Mar 21 |
peter |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
4045 |
01 Mar 21 |
peter |
General Public License for more details. |
4045 |
01 Mar 21 |
peter |
17 |
|
4045 |
01 Mar 21 |
peter |
You should have received a copy of the GNU General Public License |
4045 |
01 Mar 21 |
peter |
along with yat. If not, see <http://www.gnu.org/licenses/>. |
4045 |
01 Mar 21 |
peter |
20 |
*/ |
4045 |
01 Mar 21 |
peter |
21 |
|
4045 |
01 Mar 21 |
peter |
22 |
#include <config.h> |
4045 |
01 Mar 21 |
peter |
23 |
|
4045 |
01 Mar 21 |
peter |
24 |
#include "Suite.h" |
4045 |
01 Mar 21 |
peter |
25 |
|
4045 |
01 Mar 21 |
peter |
26 |
#include "yat/omic/VcfFile.h" |
4045 |
01 Mar 21 |
peter |
27 |
|
4045 |
01 Mar 21 |
peter |
28 |
using namespace theplu::yat; |
4045 |
01 Mar 21 |
peter |
29 |
|
4045 |
01 Mar 21 |
peter |
30 |
int main(int argc, char* argv[]) |
4045 |
01 Mar 21 |
peter |
31 |
{ |
4045 |
01 Mar 21 |
peter |
32 |
test::Suite suite(argc, argv); |
4045 |
01 Mar 21 |
peter |
33 |
try { |
4045 |
01 Mar 21 |
peter |
34 |
omic::VcfFile file("non-existent.vcf"); |
4045 |
01 Mar 21 |
peter |
35 |
suite.add(false); |
4045 |
01 Mar 21 |
peter |
36 |
suite.err() << "expected constructor to throw\n"; |
4045 |
01 Mar 21 |
peter |
37 |
} |
4045 |
01 Mar 21 |
peter |
38 |
catch (std::exception& e) { |
4045 |
01 Mar 21 |
peter |
39 |
suite.err() << e.what() << "\n"; |
4045 |
01 Mar 21 |
peter |
40 |
} |
4045 |
01 Mar 21 |
peter |
41 |
return suite.return_value(); |
4045 |
01 Mar 21 |
peter |
42 |
} |