Code coverage report for web3/lib/solidity/string.js

Statements: 100% (14 / 14)      Branches: 100% (0 / 0)      Functions: 100% (4 / 4)      Lines: 100% (14 / 14)      Ignored: none     

All files » web3/lib/solidity/ » string.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 261 1   1 1 1     1 1   1 267     1 28     1 35     1    
var f = require('./formatters');
var SolidityType = require('./type');
 
var SolidityTypeString = function () {
    this._inputFormatter = f.formatInputString;
    this._outputFormatter = f.formatOutputString;
};
 
SolidityTypeString.prototype = new SolidityType({});
SolidityTypeString.prototype.constructor = SolidityTypeString;
 
SolidityTypeString.prototype.isType = function (name) {
    return !!name.match(/^string(\[([0-9]*)\])*$/);
};
 
SolidityTypeString.prototype.staticPartLength = function (name) {
    return 32 * this.staticArrayLength(name);
};
 
SolidityTypeString.prototype.isDynamicType = function () {
    return true;
};
 
module.exports = SolidityTypeString;