Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Andrew Reynolds, Andres Noetzli, Aina Niemetz 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 parser API unit test. 14 : : */ 15 : : #ifndef CVC5__TEST__UNIT__TEST_PARSER_H 16 : : #define CVC5__TEST__UNIT__TEST_PARSER_H 17 : : 18 : : #include <cvc5/cvc5.h> 19 : : #include <cvc5/cvc5_parser.h> 20 : : 21 : : #include "test_api.h" 22 : : 23 : : using namespace cvc5::parser; 24 : : 25 : : namespace cvc5::internal { 26 : : namespace test { 27 : : 28 : : class TestParser : public TestApi 29 : : { 30 : : protected: 31 : 24 : TestParser() {} 32 : : 33 : 24 : virtual ~TestParser() {} 34 : : 35 : 24 : void SetUp() override 36 : : { 37 : 24 : TestApi::SetUp(); 38 : 24 : d_symman.reset(new SymbolManager(d_tm)); 39 : 24 : } 40 : : 41 : 24 : void TearDown() override { d_symman.reset(nullptr); } 42 : : std::unique_ptr<SymbolManager> d_symman; 43 : : }; 44 : : 45 : : } // namespace test 46 : : } // namespace cvc5::internal 47 : : 48 : : #endif