LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/unit - test_api.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 8 8 100.0 %
Date: 2026-03-15 10:41:23 Functions: 1 1 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * This file is part of the cvc5 project.
       3                 :            :  *
       4                 :            :  * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS
       5                 :            :  * in the top-level source directory and their institutional affiliations.
       6                 :            :  * All rights reserved.  See the file COPYING in the top-level source
       7                 :            :  * directory for licensing information.
       8                 :            :  * ****************************************************************************
       9                 :            :  *
      10                 :            :  * Common header for API unit test.
      11                 :            :  */
      12                 :            : 
      13                 :            : #ifndef CVC5__TEST__UNIT__TEST_API_H
      14                 :            : #define CVC5__TEST__UNIT__TEST_API_H
      15                 :            : 
      16                 :            : #include <cvc5/cvc5.h>
      17                 :            : 
      18                 :            : #include "gtest/gtest.h"
      19                 :            : 
      20                 :            : namespace cvc5::internal {
      21                 :            : namespace test {
      22                 :            : 
      23                 :            : class TestApi : public ::testing::Test
      24                 :            : {
      25                 :            :  protected:
      26                 :        484 :   void SetUp() override
      27                 :            :   {
      28                 :        484 :     d_solver.reset(new cvc5::Solver(d_tm));
      29                 :        484 :     d_bool = d_tm.getBooleanSort();
      30                 :        484 :     d_int = d_tm.getIntegerSort();
      31                 :        484 :     d_real = d_tm.getRealSort();
      32                 :        484 :     d_string = d_tm.getStringSort();
      33                 :        484 :     d_uninterpreted = d_tm.mkUninterpretedSort("u");
      34                 :        484 :   }
      35                 :            :   cvc5::TermManager d_tm;
      36                 :            :   std::unique_ptr<cvc5::Solver> d_solver;
      37                 :            :   Sort d_bool;
      38                 :            :   Sort d_int;
      39                 :            :   Sort d_real;
      40                 :            :   Sort d_string;
      41                 :            :   Sort d_uninterpreted;
      42                 :            : };
      43                 :            : 
      44                 :            : }  // namespace test
      45                 :            : }  // namespace cvc5::internal
      46                 :            : #endif

Generated by: LCOV version 1.14