perissology
e0a2afc068
rename function
2018-06-27 07:26:12 -07:00
perissology
1a4e99431b
support ignoring entire contracts
2018-06-25 07:55:19 -07:00
perissology
bbd414bdcd
add ability to ignore covering specific code blocks
2018-06-22 15:59:36 -07:00
Alex Browne
4cf331067b
Fix some bugs in sol-cov
2018-06-21 13:14:13 -07: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
perissology
ade8e95d2e
fix linter issues
2018-06-21 09:12:30 -07:00
perissology
c5ea985a70
only call getLocationByOffset if source if defined
2018-06-21 06:24:50 -07:00
Alex Browne
e4d55242d8
Update to match latest type definitions and other small changes
2018-06-20 12:22:39 -07:00
Alex Browne
613a78bcf6
Include source code snippets in revert stack traces
2018-06-20 12:19:30 -07:00
Alex Browne
d118533d87
Remove redundant check in trace.ts and revert_trace.ts
2018-06-14 16:53:29 -07:00
Alex Browne
ef61c3543f
Fix linter errors
2018-06-14 16:38:21 -07:00
Alex Browne
897560745a
De-duplicate code by refactoring subprovider classes
2018-06-14 16:33:09 -07:00
Alex Browne
d9292a70bf
Remove unused variables and other small fixes
2018-06-14 16:00:24 -07:00
Alex Browne
a9c23b7c28
Reverse order of stack trace to match behavior of most other language stack traces
2018-06-14 15:50:54 -07:00
Alex Browne
263bfb1bda
Fix a bug in revert_trace.ts
2018-06-14 15:46:59 -07:00
Alex Browne
7ab921669b
Introduce subprovider for printing revert stack traces
2018-06-14 13:58:54 -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
82743cca92
Rename _coverageCollector -> _profilerCollector in TraceCollectionSubprovider
2018-06-12 15:46:41 -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
387c80e00a
Merge pull request #690 from 0xProject/feature/truffle-sol-cov-fixes
...
Sol-cov fixes
2018-06-11 21:55:38 -07:00
Leonid Logvinov
94398d70f4
Speed-up sol-cov
2018-06-11 18:01:33 -07:00
Leonid Logvinov
f4a61b4c70
Don't throw when no config file is found
2018-06-11 16:10:56 -07:00
Fabio Berger
bc0ae6be31
Merge pull request #684 from 0xProject/fix/contract-wrappers/exchangeTransferSimulator
...
Move ExchangeTransferSimulator & OrderValidationUtils to Order-Utils
2018-06-12 00:14:19 +02:00
Fabio Berger
e1879ef4d9
Fix no-unused-variable tslint rule to include parameters and fix issues
2018-06-11 23:42:30 +02:00
Leonid Logvinov
e0c0584c59
Add EmitStatement to ASTVisitor
2018-06-11 11:14:49 -07:00
Leonid Logvinov
927ccc489c
Fix a bug in SolCompilerArtifacts adapter config overriding
2018-06-11 10:28:30 -07:00
Leonid Logvinov
cdb165af7f
Remove some copy-paste code
2018-06-08 14:56:46 -07:00
Leonid Logvinov
1c3dc757c3
Fix typos
2018-06-08 14:56:45 -07:00
Leonid Logvinov
b6c8d8e971
Await fake transactions
2018-06-08 14:56:45 -07:00
Leonid Logvinov
ab94b0b231
Fix a typo
2018-06-08 14:56:45 -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
a2fc9a964b
Fix linter errors
2018-05-31 11:19:18 -07:00
Leonid Logvinov
a7fc9caacb
Introduce ethereum-types package
2018-05-31 11:04:05 -07:00
Leonid Logvinov
c9aef16649
Fix linter issues
2018-05-23 10:39:56 -07:00
Leonid Logvinov
ebc750d5bf
Address feedback
2018-05-22 17:41:48 -07:00
Leonid Logvinov
d49f2c40ae
Parse compiler.json in SolCompilerArtifactsAdapter
2018-05-22 16:41:50 -07:00
Leonid Logvinov
8c7f0902c0
Add a more verbose comment for self-destruct
2018-05-22 16:29:10 -07:00
Leonid Logvinov
6e0aef5f2b
Fix depth tracking in a tracer
2018-05-22 15:27:18 -07:00
Leonid Logvinov
9740199870
Fix sol-cov tests
2018-05-22 15:27:17 -07:00
Leonid Logvinov
06be580d2c
Fix a bug in CALL-like opcode handling
2018-05-22 15:27:17 -07:00
Leonid Logvinov
6540343f45
Remove trace.json
2018-05-22 15:27:17 -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
83c37c6a7a
Address feedback
2018-05-22 15:27:17 -07:00
Leonid Logvinov
ac52ad88a1
Use loglevel instead of verbose flag
2018-05-22 15:26:29 -07:00
Leonid Logvinov
253bada643
Fix import paths
2018-05-22 15:20:35 -07:00