area
93a7f419c5
Merge pull request #50 from JoinColony/hotfix
...
Revert to solc 0.4.6
8 years ago
Alex Rea
ac813a2663
OSX case insensitive filesystems suck
8 years ago
Alex Rea
a283af162e
Revert to solc 0.4.6
8 years ago
Alex Rea
ad43de5dcb
This test now shows the problem
8 years ago
area
b165eb734a
Merge pull request #49 from JoinColony/refactor
...
Refactor and lint
8 years ago
Alex Rea
bc6dd8c17f
Update package.json versions
8 years ago
Alex Rea
41a3e4a8ca
Add brief headers to new files
8 years ago
Alex Rea
30a2292a00
Move instrumenter functions to separate file
8 years ago
Alex Rea
500cbd6f29
Remove the 'instrumenting' flag
8 years ago
Alex Rea
b9254fbb50
Lint the ./test/util files as well
8 years ago
Alex Rea
2c3a2248c8
Run ESLint over everything
8 years ago
Alex Rea
5ee149775f
Move parse and injector into own files
8 years ago
Alex Rea
4848f458f7
Tie everything to the same 'contract' object
8 years ago
area
4a25ec6a99
Merge pull request #46 from JoinColony/library-units
...
Add unit test for LibraryStatement, UsingStatement, lib method calls
8 years ago
cgewecke
a843a0b1f6
Add unit test for LibraryStatement, UsingStatement, lib method calls
8 years ago
area
d885a6a4c7
Merge pull request #45 from JoinColony/conditional-unit-tests
...
Add unit tests for conditional, binary and new statements
8 years ago
Alex Rea
6563906fed
Remove closeBracket event types
...
These situations are now dealt with by the preprocessor.
8 years ago
Alex Rea
3304b4c4f1
Add tests for 'useless' (but valid) expressions
...
It's unclear why someone would do these things, but they're
valid solidity, so we should support them...
8 years ago
cgewecke
c782afa322
Add unit tests for ConditionalExpression
8 years ago
area
bacd364110
Merge pull request #42 from JoinColony/linting
...
Only improves `instrumentSolidity` from a linting perspective, but baby steps!
8 years ago
Alex Rea
2badb25c38
Add eslint-plugin-mocha to package.json
8 years ago
Alex Rea
f90674bd82
Fix cyclomatic complexity
8 years ago
Alex Rea
6239706e04
1 (cyclomatic complexity) error remains
8 years ago
Alex Rea
db4dd954ef
Drop down to 70 issues
8 years ago
Alex Rea
619ce594d0
Prepare for ESLinting
8 years ago
area
9aa76934f4
Merge pull request #34 from JoinColony/preprocessor-improvements
...
Preprocessor improvements
8 years ago
cgewecke
574e4e5775
Pin solidity-parser version to 0.2.0
8 years ago
Alex Rea
804c5fb428
Change approach to instrumentation of statements
...
Previously, we traversed the whole AST, and when we encountered a
statement we checked if we could instrument it i.e. if it was
standalone. This introduced a bunch of cases that we wanted to check
(is it in a block? it is immediately after a block? etc.) and some edge
cases that didn’t work properly (comments).
Instead, this stops traversing the AST in situations where we know we
can’t instrument. We can’t instrument `f(x)` easily (see below) in
these situations, so we don’t traverse them:
* `if (f(x))`
* `arr[f(x)`
* `var x = f(x)`
* `g(f(x))`
Of course, going forward we might ‘decide’ that we *can* in fact
instrument these. e.g. `arr[f(x)]` could be replaced by
```
var _some_unique_id = f(x);
arr[_some_unique_id];
```
and then instrumented as appropriate.
8 years ago
Alex Rea
4f1ad6e133
First crack at improving statement coverage accuracy
8 years ago
Alex Rea
1352caaee6
Instrument if else statements
8 years ago
Alex Rea
5163a6cbd8
Revert "Remove unneeded argument"
...
This reverts commit f4457fbec31caa80e594ff4a34cdc14f670b9e2a.
8 years ago
Alex Rea
844fdc17c1
Remove unneeded argument
8 years ago
area
a1175b8eca
Merge pull request #41 from JoinColony/self-coverage
...
Self coverage
8 years ago
Alex Rea
dbfebd9c1a
Add coverage badge to README
...
Make ourselves accountable, I guess..
8 years ago
Alex Rea
427c9a60c0
Let's cover ourselves with istanbul
...
Also includes the fix for #39 , albeit with a changed path to the
index file (README updated appropriately)
8 years ago
area
6982d5f34a
Merge pull request #40 from JoinColony/feature/contract-directories2
...
Cover nested contracts
8 years ago
Alex Rea
765bab8128
Bump Mocha timeout for CircleCI
8 years ago
Alex Rea
80d837d27d
Tests should now use full path
8 years ago
Alex Rea
a8bc98848c
Merge branch 'master' into feature/contract-directories2
8 years ago
area
13aba8aab5
Merge pull request #35 from JoinColony/solidity-parser-pkg
...
Fix solidity-parser pkg version
8 years ago
cgewecke
05e75be6e8
Fix solidity-parser pkg version
8 years ago
Alex Rea
3fa1afaffd
Allow nested contract directories
8 years ago
Alex Rea
83181ce642
Remove an it.only that crept through
8 years ago
Alex Rea
b2420ec1ca
Allow nested contract directories
8 years ago
area
e118454511
Merge pull request #33 from JoinColony/bugfixes
...
Misc Bugfixes
8 years ago
Alex Rea
50570c8b24
Instrument statements after a closing brace
8 years ago
Alex Rea
22bf771a99
Add .catch to all promise-based tests
8 years ago
area
e810429ddb
Merge pull request #31 from JoinColony/PR30-redux
...
Start to add proper tests i.e. making sure coverage is as expected.
Closes #26
Closes #27
Has a known issue regarding highlighting (see #32 ).
8 years ago
Alex Rea
34c7918c4c
Have runCoveredTests.js use coverageMap.js
8 years ago
cgewecke
24756e3980
Istanbul-style tests ( #13 ), fix If bug ( #26 ), loop statement support ( #27 )
8 years ago