Leonid Logvinov
bf8ac3b9e6
Fix tslint issues
2018-07-17 12:59:02 +02:00
Leonid Logvinov
eae2a4df8b
Merge pull request #702 from perissology/feature/missing-sources
...
[sol-cov] Only collect coverage for provided sources
2018-06-21 19:28:35 +02:00
Alex Browne
897560745a
De-duplicate code by refactoring subprovider classes
2018-06-14 16:33:09 -07:00
perissology
7a41a5249f
Collect coverage for provided sources
...
When solidity generates source maps during contract compilation, the
contracts are referred to by an id, which corresponds to an array index.
We may not want to cover all sources that were included in a compilation,
but because we use array indexes (vs. the id that is provided by solidity
compiler) to map the contract to the sourceMap, the provided sourceCodes
array must include the code at the correct index. This can result in
empty slots in the sourceCodes array.
This commit allows the coverage to only be collected for the contracts
with provided sourceCode.
2018-06-14 11:17:04 -07:00
Alex Browne
d0c348e595
Refactor sol-cov to de-duplicate code for coverage and profiling
2018-06-12 15:40:18 -07:00
Alex Browne
627ea6c860
Rename computeCoverageAsync -> computeSingleTraceCoverageAsync
2018-06-12 14:11:11 -07:00
Alex Browne
bcc76b3764
Fix linter errors
2018-06-12 14:09:42 -07:00
Alex Browne
33f0669100
Refactor sol-cov to avoid keeping traceInfo in memory
2018-06-12 12:42:14 -07:00
Leonid Logvinov
760bab8f86
Implement SolidityProfiler & adapt sol-cov to work with Geth
2018-06-08 14:56:45 -07:00
fragosti
9778695b4a
Try enabling no-unused-variable...
2018-06-04 19:48:21 -07:00
Leonid Logvinov
a7fc9caacb
Introduce ethereum-types package
2018-05-31 11:04:05 -07:00
Leonid Logvinov
ebc750d5bf
Address feedback
2018-05-22 17:41:48 -07:00
Leonid Logvinov
447b305e3c
Suppport subcalls in constructor
2018-05-22 15:27:17 -07:00
Leonid Logvinov
0c53d276f8
Use BlockParamLiteral.Latest
2018-05-22 15:27:17 -07:00
Leonid Logvinov
253bada643
Fix import paths
2018-05-22 15:20:35 -07:00
Leonid Logvinov
1ff34bd0f4
Remove web3Factory.create and remove dev-tools dependency on sol-cov
2018-05-22 15:20:34 -07:00
Leonid Logvinov
974575b695
Make sol-cov work with truffle and other artifact adapters
2018-05-22 15:20:34 -07:00
Leonid Logvinov
b74957acdf
Add missing type definitions
2018-05-14 10:35:13 +02:00
Leonid Logvinov
75d24dea0e
Fix linter issues
2018-05-10 17:47:38 +02:00
Fabio Berger
986ba175ce
Fix tslint
2018-04-09 17:14:32 +09:00
Fabio Berger
1b7c7037b8
Remove remaining unused deps
2018-04-03 15:27:45 +09:00
Leonid Logvinov
d72b7299c6
Move common types out of web3 types
2018-03-27 17:56:21 +02:00
Fabio Berger
de8450d5c9
Make handleRequest public and add comment for it
2018-03-22 15:54:13 +00:00
Fabio Berger
6fef533fff
Improve comments
2018-03-21 18:38:45 +00:00
Fabio Berger
ec219fc395
Add comments to sol-cov
2018-03-21 18:24:54 +00:00
Fabio Berger
db030016fa
Refactor CoverageSubprovider to use subproviders types
2018-03-18 16:09:37 +01:00
Leonid Logvinov
efb0ee4c02
Start using solidity-parser-antlr
2018-03-13 11:53:45 +01:00
Leonid Logvinov
2a9913b8fb
Treap transactions to address 0x0 as contract creation
2018-03-12 06:07:01 +01:00
Leonid Logvinov
22f78a2c52
Don't await lock releases
2018-03-12 03:37:30 +01:00
Leonid Logvinov
bd7517cfd4
Add support for async calls under coverage
2018-03-12 03:37:30 +01:00
Leonid Logvinov
3b158cb726
Address feedback
2018-03-12 03:37:29 +01:00
Leonid Logvinov
98f32d6f1f
Stop making an assumption that contract code is immutable
2018-03-12 03:37:28 +01:00
Leonid Logvinov
13299158d1
Add sol-cover implementation
2018-03-12 03:37:27 +01:00