LCOV - code coverage report
Current view: top level - tests - catch_main.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 5 5 100.0 %
Date: 2022-02-13 10:56:14 Functions: 6 6 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Copyright (c) 2006-2022  Made to Order Software Corp.  All Rights Reserved
       2             : //
       3             : // https://snapwebsites.org/project/snapdev
       4             : // contact@m2osw.com
       5             : //
       6             : // This program is free software; you can redistribute it and/or modify
       7             : // it under the terms of the GNU General Public License as published by
       8             : // the Free Software Foundation; either version 2 of the License, or
       9             : // (at your option) any later version.
      10             : //
      11             : // This program is distributed in the hope that it will be useful,
      12             : // but WITHOUT ANY WARRANTY; without even the implied warranty of
      13             : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14             : // GNU General Public License for more details.
      15             : //
      16             : // You should have received a copy of the GNU General Public License along
      17             : // with this program; if not, write to the Free Software Foundation, Inc.,
      18             : // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      19             : 
      20             : 
      21             : /** \file
      22             :  * \brief Start the catch test for snapdev.
      23             :  *
      24             :  * This file implements the main test functions (initialization).
      25             :  */
      26             : 
      27             : // Tell catch we want it to add the runner code in this file.
      28             : #define CATCH_CONFIG_RUNNER
      29             : 
      30             : // self
      31             : //
      32             : #include    "catch_main.h"
      33             : 
      34             : 
      35             : // snapdev lib
      36             : //
      37             : #include    <snapdev/not_used.h>
      38             : #include    <snapdev/version.h>
      39             : 
      40             : 
      41             : // libexcept lib
      42             : //
      43             : #include    <libexcept/exception.h>
      44             : 
      45             : 
      46             : // C++ lib
      47             : //
      48             : #include    <sstream>
      49             : 
      50             : 
      51             : // last include
      52             : //
      53             : #include    <snapdev/poison.h>
      54             : 
      55             : 
      56             : 
      57             : 
      58             : namespace SNAP_CATCH2_NAMESPACE
      59             : {
      60             : 
      61             : 
      62             : 
      63             : 
      64             : 
      65             : 
      66             : }
      67             : // SNAP_CATCH2_NAMESPACE namespace
      68             : 
      69             : 
      70             : namespace
      71             : {
      72             : 
      73             : 
      74             : 
      75             : 
      76             : 
      77             : 
      78             : }
      79             : 
      80             : 
      81           2 : int main(int argc, char * argv[])
      82             : {
      83           4 :     return SNAP_CATCH2_NAMESPACE::snap_catch2_main(
      84             :               "snapdev"
      85             :             , SNAPDEV_VERSION_STRING
      86             :             , argc
      87             :             , argv
      88           6 :             , []() { libexcept::set_collect_stack(libexcept::collect_stack_t::COLLECT_STACK_NO); }
      89             :             , nullptr
      90             :             , nullptr
      91           4 :         );
      92           6 : }
      93             : 
      94             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.13