LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/unit - test_node.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 8 8 100.0 %
Date: 2026-02-07 12:26:33 Functions: 1 1 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Aina Niemetz, Andrew Reynolds
       4                 :            :  *
       5                 :            :  * This file is part of the cvc5 project.
       6                 :            :  *
       7                 :            :  * Copyright (c) 2009-2025 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                 :            :  * Common header for Node unit tests.
      14                 :            :  */
      15                 :            : 
      16                 :            : #ifndef CVC5__TEST__UNIT__TEST_NODE_H
      17                 :            : #define CVC5__TEST__UNIT__TEST_NODE_H
      18                 :            : 
      19                 :            : #include "expr/node_manager.h"
      20                 :            : #include "expr/skolem_manager.h"
      21                 :            : #include "smt/solver_engine.h"
      22                 :            : #include "test.h"
      23                 :            : 
      24                 :            : namespace cvc5::internal {
      25                 :            : namespace test {
      26                 :            : 
      27                 :            : class TestNode : public TestInternal
      28                 :            : {
      29                 :            :  protected:
      30                 :        112 :   void SetUp() override
      31                 :            :   {
      32                 :        112 :     d_nodeManager = std::make_unique<NodeManager>();
      33                 :        112 :     d_skolemManager = d_nodeManager->getSkolemManager();
      34                 :        112 :     d_boolTypeNode.reset(new TypeNode(d_nodeManager->booleanType()));
      35                 :        112 :     d_bvTypeNode.reset(new TypeNode(d_nodeManager->mkBitVectorType(2)));
      36                 :        112 :     d_intTypeNode.reset(new TypeNode(d_nodeManager->integerType()));
      37                 :        112 :     d_realTypeNode.reset(new TypeNode(d_nodeManager->realType()));
      38                 :        112 :   }
      39                 :            : 
      40                 :            :   std::unique_ptr<NodeManager> d_nodeManager;
      41                 :            :   SkolemManager* d_skolemManager;
      42                 :            :   std::unique_ptr<TypeNode> d_boolTypeNode;
      43                 :            :   std::unique_ptr<TypeNode> d_bvTypeNode;
      44                 :            :   std::unique_ptr<TypeNode> d_intTypeNode;
      45                 :            :   std::unique_ptr<TypeNode> d_realTypeNode;
      46                 :            : };
      47                 :            : 
      48                 :            : }  // namespace test
      49                 :            : }  // namespace cvc5::internal
      50                 :            : #endif

Generated by: LCOV version 1.14