LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/unit/node - kind_map_black.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 8 8 100.0 %
Date: 2025-01-06 12:36:47 Functions: 2 2 100.0 %
Branches: 8 14 57.1 %

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Aina Niemetz, Mathias Preiner
       4                 :            :  *
       5                 :            :  * This file is part of the cvc5 project.
       6                 :            :  *
       7                 :            :  * Copyright (c) 2009-2024 by the authors listed in the file AUTHORS
       8                 :            :  * in the top-level source directory and their institutional affiliations.
       9                 :            :  * All rights reserved.  See the file COPYING in the top-level source
      10                 :            :  * directory for licensing information.
      11                 :            :  * ****************************************************************************
      12                 :            :  *
      13                 :            :  * Black box testing of cvc5::KindMap.
      14                 :            :  */
      15                 :            : 
      16                 :            : #include <iostream>
      17                 :            : #include <sstream>
      18                 :            : #include <string>
      19                 :            : 
      20                 :            : #include "expr/kind_map.h"
      21                 :            : #include "test.h"
      22                 :            : 
      23                 :            : namespace cvc5::internal {
      24                 :            : 
      25                 :            : using namespace internal;
      26                 :            : using namespace internal::kind;
      27                 :            : 
      28                 :            : namespace test {
      29                 :            : 
      30                 :            : class TestNodeBlackKindMap : public TestInternal
      31                 :            : {
      32                 :            : };
      33                 :            : 
      34                 :          2 : TEST_F(TestNodeBlackKindMap, simple)
      35                 :            : {
      36         [ +  + ]:          5 :   KindMap map;
      37         [ -  + ]:          1 :   ASSERT_FALSE(map.test(Kind::AND));
      38                 :          1 :   map.set(Kind::AND);
      39         [ -  + ]:          1 :   ASSERT_TRUE(map.test(Kind::AND));
      40                 :          1 :   map.reset(Kind::AND);
      41         [ -  + ]:          1 :   ASSERT_FALSE(map.test(Kind::AND));
      42                 :            : #ifdef CVC5_ASSERTIONS
      43 [ +  - ][ +  - ]:          2 :   ASSERT_THROW(map.set(Kind::LAST_KIND), AssertArgumentException);
                 [ -  + ]
      44                 :            : #endif
      45                 :            : }
      46                 :            : 
      47                 :            : }  // namespace test
      48                 :            : }  // namespace cvc5::internal

Generated by: LCOV version 1.14