source: trunk/test/config_test.cc @ 570

Last change on this file since 570 was 556, checked in by Peter Johansson, 14 years ago

Fixing statistics bugs and links on first page

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1// $Id: config_test.cc 556 2008-01-16 13:35:00Z peter $
2
3/*
4  Copyright (C) 2008 Peter Johansson
5
6  This file is part of svndigest, http://trac.thep.lu.se/svndigest
7
8  svndigest 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  svndigest 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 "Configuration.h"
25
26namespace theplu{
27namespace svndigest{
28  bool test_codon(void);
29}} // end of namespace svndigest and theplu
30
31
32int main( int argc, char* argv[])
33{
34  using namespace theplu::svndigest;
35  bool ok=true;
36
37  ok &= test_codon();
38                                                                               
39  if (ok)
40    return 0;
41  return 1;
42}
43
44
45namespace theplu{
46namespace svndigest{
47
48  bool test_codon(void)
49  {
50    const Configuration& c(Configuration::instance());
51    bool ok =true;
52    if (!c.codon("foo.h")){
53      std::cerr << "No codon for test.cc\n";
54      ok = false;
55    }
56    if (!c.codon("../dir/test.cc")){
57      std::cerr << "No codon for test.cc\n";
58      ok = false;
59    }
60
61    return ok;
62  }
63 
64}} // end of namespace svndigest and theplu
Note: See TracBrowser for help on using the repository browser.