LCOV - code coverage report
Current view: top level - buildbot/coverage/build/test/unit/api/cpp - api_op_white.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 6 6 100.0 %
Date: 2026-04-03 10:41:34 Functions: 4 4 100.0 %
Branches: 7 14 50.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                 :            :  * White box testing of the Op class.
      11                 :            :  */
      12                 :            : 
      13                 :            : #include "test_api.h"
      14                 :            : 
      15                 :            : namespace cvc5::internal {
      16                 :            : 
      17                 :            : namespace test {
      18                 :            : 
      19                 :            : class TestApiWhiteOp : public TestApi
      20                 :            : {
      21                 :            : };
      22                 :            : 
      23                 :          4 : TEST_F(TestApiWhiteOp, opFromKind)
      24                 :            : {
      25                 :          1 :   Op plus(&d_solver->getTermManager(), Kind::ADD);
      26 [ -  + ][ +  - ]:          1 :   ASSERT_FALSE(plus.isIndexed());
      27 [ -  + ][ +  - ]:          1 :   ASSERT_EQ(0, plus.getNumIndices());
      28 [ -  + ][ +  - ]:          2 :   ASSERT_EQ(plus, d_tm.mkOp(Kind::ADD));
      29         [ +  - ]:          1 : }
      30                 :            : }  // namespace test
      31                 :            : }  // namespace cvc5::internal

Generated by: LCOV version 1.14