LCOV - code coverage report
Current view: top level - data/test - index_traits_test.cpp (source / functions) Hit Total Coverage
Test: mcrl2_coverage.info.cleaned Lines: 2 5 40.0 %
Date: 2024-04-26 03:18:02 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Author(s): Wieger Wesselink
       2             : // Copyright: see the accompanying file COPYING or copy at
       3             : // https://github.com/mCRL2org/mCRL2/blob/master/COPYING
       4             : //
       5             : // Distributed under the Boost Software License, Version 1.0.
       6             : // (See accompanying file LICENSE_1_0.txt or copy at
       7             : // http://www.boost.org/LICENSE_1_0.txt)
       8             : //
       9             : /// \file index_traits_test.cpp
      10             : /// \brief Test for index_traits.
      11             : 
      12             : #define BOOST_TEST_MODULE index_traits
      13             : 
      14             : #include <boost/test/included/unit_test.hpp>
      15             : 
      16             : #include "mcrl2/data/bool.h"
      17             : #include "mcrl2/data/detail/io.h"
      18             : 
      19             : using namespace mcrl2;
      20             : 
      21           0 : void f()
      22             : {
      23           0 :   data::variable x("x", data::sort_bool::bool_());
      24           0 : }
      25             : 
      26           2 : BOOST_AUTO_TEST_CASE(test_io)
      27             : {
      28             : /*
      29             :   data::variable b("b", data::sort_bool::bool_());
      30             :   data::variable c("c", data::sort_bool::bool_());
      31             :   std::size_t b_index = atermpp::detail::index_traits<data::variable, data::variable_key_type, 2>::index(b);
      32             :   std::size_t c_index = atermpp::detail::index_traits<data::variable, data::variable_key_type, 2>::index(c);
      33             :   data::data_expression b_and_c = data::sort_bool::and_(b, c);
      34             :   atermpp::aterm t1 = data::add_index(b_and_c);
      35             :   std::cout << t1 << std::endl;
      36             :   atermpp::aterm t2 = data::remove_index(t1);
      37             :   BOOST_CHECK(b_and_c == t2);
      38             : */
      39           1 : }

Generated by: LCOV version 1.14