source: trunk/test/file.cc @ 145

Last change on this file since 145 was 145, checked in by Jari Häkkinen, 15 years ago

Removed test/parser.cc and test/stats.cc. These tests are an essential
part in the test/directory.cc and test/file.cc, and thus redundant.
Fixed the other tests to actually report success or failure.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1// $Id: file.cc 145 2006-08-09 21:36:31Z jari $
2
3/*
4  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
5
6  This file is part of svnstat, http://lev.thep.lu.se/trac/svnstat
7
8  svnstat is free software; you can redistribute it and/or modify it
9  under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12
13  svnstat is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  General Public License for more details.
17
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21  02111-1307, USA.
22*/
23
24#include "File.h"
25
26#include <iostream>
27
28int main(const int argc,const char* argv[])
29{
30  try {
31    theplu::svnstat::File file(0,"file.cc");
32    file.parse();
33  }
34  catch (const std::runtime_error& x) {
35    std::cerr << "Test file: " << x.what() << std::endl;
36    return -1;
37  }
38  return 0;
39}
Note: See TracBrowser for help on using the repository browser.