From cba58629d24404ed7553d16bb2ad064f95f9fe37 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 23 Nov 2017 15:35:14 +0100 Subject: Refactor iulia tests. --- test/libjulia/Common.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 test/libjulia/Common.h (limited to 'test/libjulia/Common.h') diff --git a/test/libjulia/Common.h b/test/libjulia/Common.h new file mode 100644 index 00000000..55fa03da --- /dev/null +++ b/test/libjulia/Common.h @@ -0,0 +1,54 @@ +/* + This file is part of solidity. + + solidity is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + solidity is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with solidity. If not, see . +*/ +/** + * @date 2017 + * Common functions the iulia tests. + */ + +#pragma once + +#include + +#include +#include +#include + +namespace dev +{ +namespace solidity +{ +class Scanner; +class Error; +using ErrorList = std::vector>; +namespace assembly +{ +struct AsmAnalysisInfo; +} +} +namespace julia +{ +namespace test +{ + +void printErrors(solidity::ErrorList const& _errors, solidity::Scanner const& _scanner); +std::pair, std::shared_ptr> parse(std::string const& _source); +std::shared_ptr disambiguate(std::string const& _source); +std::string format(std::string const& _source); + +} +} +} -- cgit