diff options
author | chriseth <chris@ethereum.org> | 2017-11-23 22:35:14 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-12-05 19:09:55 +0800 |
commit | cba58629d24404ed7553d16bb2ad064f95f9fe37 (patch) | |
tree | 8e6f258bf2956b668084261b4e3d01ed502eab87 /test/libjulia/Common.h | |
parent | 861210f543cea615d7779fb7b1bc133349ae971a (diff) | |
download | dexon-solidity-cba58629d24404ed7553d16bb2ad064f95f9fe37.tar.gz dexon-solidity-cba58629d24404ed7553d16bb2ad064f95f9fe37.tar.zst dexon-solidity-cba58629d24404ed7553d16bb2ad064f95f9fe37.zip |
Refactor iulia tests.
Diffstat (limited to 'test/libjulia/Common.h')
-rw-r--r-- | test/libjulia/Common.h | 54 |
1 files changed, 54 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. +*/ +/** + * @date 2017 + * Common functions the iulia tests. + */ + +#pragma once + +#include <libsolidity/inlineasm/AsmData.h> + +#include <string> +#include <vector> +#include <memory> + +namespace dev +{ +namespace solidity +{ +class Scanner; +class Error; +using ErrorList = std::vector<std::shared_ptr<Error const>>; +namespace assembly +{ +struct AsmAnalysisInfo; +} +} +namespace julia +{ +namespace test +{ + +void printErrors(solidity::ErrorList const& _errors, solidity::Scanner const& _scanner); +std::pair<std::shared_ptr<solidity::assembly::Block>, std::shared_ptr<solidity::assembly::AsmAnalysisInfo>> parse(std::string const& _source); +std::shared_ptr<solidity::assembly::Block> disambiguate(std::string const& _source); +std::string format(std::string const& _source); + +} +} +} |