| 66 | } |
| 67 | |
| 68 | CompilerStack::State stringToCompilerState(const std::string& _state) |
| 69 | { |
| 70 | for (unsigned int i = CompilerStack::State::Empty; i <= CompilerStack::State::CompilationSuccessful; ++i) |
| 71 | { |
| 72 | if (_state == compilerStateToString(CompilerStack::State(i))) |
| 73 | return CompilerStack::State(i); |
| 74 | } |
| 75 | BOOST_THROW_EXCEPTION(std::runtime_error("Unsupported compiler state (" + _state + ") in test contract file")); |
| 76 | } |
| 77 | |
| 78 | void replaceVersionWithTag(std::string& _input) |
| 79 | { |
no test coverage detected