LCOV - code coverage report
Current view: top level - pairinteraction/unit_test - utils_test.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 4 4 100.0 %
Date: 2024-04-29 00:41:50 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2018 Sebastian Weber, Henri Menke. All rights reserved.
       3             :  *
       4             :  * This file is part of the pairinteraction library.
       5             :  *
       6             :  * The pairinteraction library is free software: you can redistribute it and/or modify
       7             :  * it under the terms of the GNU Lesser General Public License as published by
       8             :  * the Free Software Foundation, either version 3 of the License, or
       9             :  * (at your option) any later version.
      10             :  *
      11             :  * The pairinteraction library 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 Lesser General Public License for more details.
      15             :  *
      16             :  * You should have received a copy of the GNU Lesser General Public License
      17             :  * along with the pairinteraction library. If not, see <http://www.gnu.org/licenses/>.
      18             :  */
      19             : 
      20             : #include "utils.hpp"
      21             : 
      22             : #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
      23             : #include <doctest/doctest.h>
      24             : 
      25           1 : TEST_CASE("randint_test") // NOLINT
      26             : {
      27           1 :     int a = utils::randint(0, 10);
      28           1 :     CHECK((0 <= a && a <= 10));
      29           1 : }

Generated by: LCOV version 1.14