LCOV - code coverage report
Current view: top level - tests - version.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 7 7 100.0 %
Date: 2019-08-08 02:52:36 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * License:
       3             :  *    Copyright (c) 2006-2019  Made to Order Software Corp.  All Rights Reserved
       4             :  *
       5             :  *    https://snapwebsites.org/
       6             :  *    contact@m2osw.com
       7             :  *
       8             :  *    This program is free software; you can redistribute it and/or modify
       9             :  *    it 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             :  *    This program is distributed in the hope that it will be useful,
      14             :  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
      15             :  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16             :  *    GNU General Public License for more details.
      17             :  *
      18             :  *    You should have received a copy of the GNU General Public License along
      19             :  *    with this program; if not, write to the Free Software Foundation, Inc.,
      20             :  *    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      21             :  *    Alexis Wilke   alexis@m2osw.com
      22             :  */
      23             : 
      24             : // self
      25             : //
      26             : #include    "main.h"
      27             : 
      28             : // snaplogger lib
      29             : //
      30             : #include    <eventdispatcher/version.h>
      31             : 
      32             : 
      33             : 
      34             : 
      35           3 : CATCH_TEST_CASE("Version", "[version]")
      36             : {
      37           2 :     CATCH_START_SECTION("verify runtime vs compile time version numbers")
      38             :     {
      39           1 :         CATCH_REQUIRE(ed::get_major_version()   == EVENTDISPATCHER_VERSION_MAJOR);
      40           1 :         CATCH_REQUIRE(ed::get_release_version() == EVENTDISPATCHER_VERSION_MINOR);
      41           1 :         CATCH_REQUIRE(ed::get_patch_version()   == EVENTDISPATCHER_VERSION_PATCH);
      42           1 :         CATCH_REQUIRE(strcmp(ed::get_version_string(), EVENTDISPATCHER_VERSION_STRING) == 0);
      43             :     }
      44             :     CATCH_END_SECTION()
      45           7 : }
      46             : 
      47             : 
      48             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.12