Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 2.4 KB

COVERAGE.md

File metadata and controls

47 lines (39 loc) · 2.4 KB

Solidity Coverage

Test contracts

On localhost testing.

NameRegex address 		 0x2cAc03060B611f0e0196a779E83FED51e3022b14
ProtocolRegex address 		 0x4a3707f999dD13c4e427Cf7e2a0380D50285ba4d
UniversalRegistry address 	 0x438a3CBA4D3991513F2FB66dD2329dA1d731F6bF
UniversalRegistrar address 	 0x00791f9C54757AD048c0E2698B62E9D41031A752
PortalNetworkToken address 	 0xB439F2200942E3981e89B5410791519B4Cedf7a5

Running Code Coverage

Run the command below.

./node_modules/.bin/solidity-coverage

Coverage Report

-------------------------------|----------|----------|----------|----------|----------------|
File                           |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-------------------------------|----------|----------|----------|----------|----------------|
 contracts/                    |    46.65 |    29.39 |    55.68 |    44.59 |                |
  ERC20Interface.sol           |      100 |      100 |      100 |      100 |                |
  ERC20Token.sol               |     62.5 |      100 |       70 |     62.5 |... 80,85,87,89 |
  Math.sol                     |    55.56 |    33.33 |       50 |    55.56 |    22,24,26,31 |
  Owned.sol                    |    15.79 |     8.33 |       50 |       20 |... 59,60,62,64 |
  PortalNetworkToken.sol       |    96.08 |       50 |      100 |    96.15 |          74,99 |
  PortalNetworkTokenConfig.sol |      100 |      100 |      100 |      100 |                |
  Registry.sol                 |      100 |      100 |      100 |      100 |                |
  UniversalRegistrar.sol       |    98.31 |    57.45 |      100 |    97.56 |    172,186,208 |
  UniversalRegistry.sol        |    42.11 |    23.33 |    54.55 |     43.9 |... 112,113,131 |
  strings.sol                  |     5.88 |     1.04 |    13.33 |     7.63 |... 709,710,714 |
 contracts/regex/              |     56.1 |       40 |    63.64 |     56.1 |                |
  NameRegex.sol                |    54.55 |    41.67 |       60 |    54.55 |... 32,35,40,46 |
  ProtocolRegex.sol            |    57.89 |     37.5 |    66.67 |    57.89 |... 37,41,42,45 |
-------------------------------|----------|----------|----------|----------|----------------|
All files                      |    47.42 |    30.14 |    56.57 |    45.44 |                |
-------------------------------|----------|----------|----------|----------|----------------|

Istanbul coverage reports generated