GCC Code Coverage Report
Directory: . Exec Total Coverage
File: test/unit/api/op_white.cpp Lines: 7 7 100.0 %
Date: 2021-03-23 Branches: 18 60 30.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file op_white.cpp
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Aina Niemetz, Makai Mann
6
 ** This file is part of the CVC4 project.
7
 ** Copyright (c) 2009-2021 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.\endverbatim
11
 **
12
 ** \brief White box testing of the Op class.
13
 **/
14
15
#include "test_api.h"
16
17
namespace CVC4 {
18
19
using namespace api;
20
21
namespace test {
22
23
4
class TestApiWhiteOp : public TestApi
24
{
25
};
26
27
10
TEST_F(TestApiWhiteOp, opFromKind)
28
{
29
4
  Op plus(&d_solver, PLUS);
30
2
  ASSERT_FALSE(plus.isIndexed());
31
4
  ASSERT_THROW(plus.getIndices<uint32_t>(), CVC4ApiException);
32
2
  ASSERT_EQ(plus, d_solver.mkOp(PLUS));
33
}
34
}  // namespace test
35
6
}  // namespace CVC4