solidity/test
alex e4b18e85e6 Replaced SourceLocation::isEmpty() with isValid() and hasText().
The function SourceLocation::isEmpty() had somewhat dual role.
Sometimes it indicates that the SourceLocation is invalid.
Sometimes it means that there is no corresponding source text.

Hence the proposal is to replace it with two functions, isValid() and hasText().

I also removed Scanner::sourceAt(). (Do we have a rule of thumb to remove unused code?)

Since hasText() checks that start and end are valid indices for source, I adjusted a couple of tests to avoid empty source strings.
2020-02-03 08:04:21 +01:00
..
cmdlineTests Use old yul dialect only in tests. 2020-01-29 19:01:28 +01:00
compilationTests Fixes named return natspec errors in compilation tests. 2019-12-04 15:38:12 +01:00
contracts TestFramework: Merge Options.h into Common.h 2020-01-29 12:27:05 +01:00
evmc Update EVMC to 7.1.0 2019-12-02 21:26:42 +01:00
externalTests Use master branch of solc-js 2019-12-11 16:48:11 +00:00
formal Proofs for the overflow and underflow conditions in checked arithmetic for Sol->Yul code generation. 2019-06-20 15:58:10 +02:00
libevmasm Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
liblangutil Replaced SourceLocation::isEmpty() with isValid() and hasText(). 2020-02-03 08:04:21 +01:00
libsolidity Adds JSON import / export for structured documentation. 2020-01-30 18:26:01 +01:00
libsolutil TestFramework: Merge Options.h into Common.h 2020-01-29 12:27:05 +01:00
libyul Make bool type optional for bool literals. 2020-01-29 19:01:28 +01:00
tools Merge pull request #8220 from ethereum/remove-var-name-cleaner-from-optimiser-suite-step-list 2020-01-30 17:58:43 +01:00
.solhint.json Test require with string literals 2019-11-13 12:01:25 +01:00
.solhintignore Add style checker 2019-08-05 13:00:30 +02:00
boostTest.cpp TestFramework: Merge Options.h into Common.h 2020-01-29 12:27:05 +01:00
buglist_test_vectors.md Update bug description, add regex and tests. 2018-09-10 12:58:40 +02:00
buglistTests.js Buglist check script supports json paths 2018-09-06 18:42:21 +02:00
CMakeLists.txt TestFramework: Merge Options.h into Common.h 2020-01-29 12:27:05 +01:00
cmdlineTests.sh Adjust and add commandline tests for yul. 2020-01-29 19:10:53 +01:00
Common.cpp TestFramework: Merge Options.h into Common.h 2020-01-29 12:27:05 +01:00
Common.h TestFramework: Merge Options.h into Common.h 2020-01-29 12:27:05 +01:00
docsCodeStyle.sh Add style checker 2019-08-05 13:00:30 +02:00
EVMHost.cpp Implement create2 for evmhost. 2020-01-23 21:20:01 +01:00
EVMHost.h Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
ExecutionFramework.cpp TestFramework: Merge Options.h into Common.h 2020-01-29 12:27:05 +01:00
ExecutionFramework.h TestFramework: Merge Options.h into Common.h 2020-01-29 12:27:05 +01:00
externalTests.sh Migrates solc-js test to ext. test infrastructure. 2019-09-25 16:03:08 +02:00
InteractiveTests.h Adapt tests directory to C++ namespace changes. 2020-01-07 15:51:50 +01:00
Metadata.cpp Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
Metadata.h Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
TestCase.cpp Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
TestCase.h Adapt tests directory to C++ namespace changes. 2020-01-07 15:51:50 +01:00