eth-gas-reporter
Advanced tools
Comparing version 0.0.6 to 0.0.7
## Changelog: eth-gas-reporter | ||
0.0.6 / 2017-10-14 | ||
================ | ||
* Stop showing zero gas usage in mocha output | ||
* Show currency rates and gwei gas price rates in table header | ||
* Alphabetize table | ||
* Fix bug caused by unused methods reporting NaN | ||
* Fix failure to round avg gas use in table | ||
* Update dev deps to truffle4 beta | ||
0.0.5 / 2017-10-12 | ||
@@ -17,3 +27,3 @@ ================= | ||
* Abi encoding map. | ||
0.0.4 / 2017-10-01 | ||
@@ -20,0 +30,0 @@ ================== |
@@ -127,14 +127,9 @@ /** | ||
// Sort rows and push | ||
// Sort rows by contract, then method and push | ||
rows.sort((a,b) => { | ||
if( a[0] < b[0]) return -1; | ||
if( a[0] === b[0]) return 0; | ||
if( a[0] > b[0]) return 1; | ||
const contractName = a[0].localeCompare(b[0]); | ||
const methodName = a[1].localeCompare(b[1]); | ||
return contractName || methodName; | ||
}); | ||
rows.sort((a,b) => { | ||
if(a[0] !== b[0]) return 0; | ||
if(a[1] < b[1]) return -1; | ||
if(a[1] > b[1]) return 1; | ||
}); | ||
rows.forEach(row => table.push(row)); | ||
@@ -141,0 +136,0 @@ |
@@ -83,3 +83,3 @@ const mocha = require('mocha') | ||
} else { | ||
limitString = color('pass', ' (%d% of limit) ') | ||
limitString = ' (%d% of limit) ' | ||
} | ||
@@ -111,4 +111,4 @@ fmt = indent() + | ||
runner.on('end', () => { | ||
self.epilogue(); | ||
stats.generateGasStatsReport (methodMap) | ||
self.epilogue() | ||
}) | ||
@@ -115,0 +115,0 @@ } |
{ | ||
"name": "eth-gas-reporter", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Mocha reporter which shows gas used per unit test.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
{ | ||
"name": "eth-gas-reporter", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Mocha reporter which shows gas used per unit test.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25901
474