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 parser API unit test. 11 : : */ 12 : : #ifndef CVC5__TEST__UNIT__TEST_PARSER_H 13 : : #define CVC5__TEST__UNIT__TEST_PARSER_H 14 : : 15 : : #include <cvc5/cvc5.h> 16 : : #include <cvc5/cvc5_parser.h> 17 : : 18 : : #include "test_api.h" 19 : : 20 : : using namespace cvc5::parser; 21 : : 22 : : namespace cvc5::internal { 23 : : namespace test { 24 : : 25 : : class TestParser : public TestApi 26 : : { 27 : : protected: 28 : 24 : TestParser() {} 29 : : 30 : 24 : virtual ~TestParser() {} 31 : : 32 : 24 : void SetUp() override 33 : : { 34 : 24 : TestApi::SetUp(); 35 : 24 : d_symman.reset(new SymbolManager(d_tm)); 36 : 24 : } 37 : : 38 : 24 : void TearDown() override { d_symman.reset(nullptr); } 39 : : std::unique_ptr<SymbolManager> d_symman; 40 : : }; 41 : : 42 : : } // namespace test 43 : : } // namespace cvc5::internal 44 : : 45 : : #endif