Merge pull request #9576 from ethereum/test-cleanup

Rename libsolidity/SolidityScanner to liblangutil/Scanner in tests
This commit is contained in:
chriseth 2020-08-06 00:49:33 +02:00 committed by GitHub
commit ebd512cef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 5 deletions

View File

@ -50,6 +50,7 @@ detect_stray_source_files("${libevmasm_sources}" "libevmasm/")
set(liblangutil_sources
liblangutil/CharStream.cpp
liblangutil/Scanner.cpp
liblangutil/SourceLocation.cpp
)
detect_stray_source_files("${liblangutil_sources}" "liblangutil/")
@ -92,7 +93,6 @@ set(libsolidity_sources
libsolidity/SolidityNatspecJSON.cpp
libsolidity/SolidityOptimizer.cpp
libsolidity/SolidityParser.cpp
libsolidity/SolidityScanner.cpp
libsolidity/SolidityTypes.cpp
libsolidity/StandardCompiler.cpp
libsolidity/SyntaxTest.cpp

View File

@ -31,7 +31,7 @@
namespace solidity::langutil::test
{
BOOST_AUTO_TEST_SUITE(CharStreamtest)
BOOST_AUTO_TEST_SUITE(CharStreamTest)
BOOST_AUTO_TEST_CASE(test_fail)
{

View File

@ -21,15 +21,16 @@
*/
#include <liblangutil/Scanner.h>
#include <boost/test/unit_test.hpp>
using namespace std;
using namespace solidity::langutil;
namespace solidity::frontend::test
namespace solidity::langutil::test
{
BOOST_AUTO_TEST_SUITE(SolidityScanner)
BOOST_AUTO_TEST_SUITE(ScannerTest)
BOOST_AUTO_TEST_CASE(test_empty)
{

View File

@ -28,6 +28,7 @@
#include <libyul/AsmParser.h>
#include <libyul/AssemblyStack.h>
#include <libyul/AsmAnalysisInfo.h>
#include <libyul/Object.h>
#include <liblangutil/ErrorReporter.h>
#include <liblangutil/SourceReferenceFormatter.h>

View File

@ -19,7 +19,6 @@
#pragma once
#include <test/TestCase.h>
#include <libyul/Object.h>
namespace solidity::langutil
{
@ -28,6 +27,11 @@ class Error;
using ErrorList = std::vector<std::shared_ptr<Error const>>;
}
namespace solidity::yul
{
struct Object;
}
namespace solidity::yul::test
{