@0xcert/merkle
Version:
Implementation of basic functions of binary Merkle tree.
39 lines (33 loc) • 1.77 kB
Plain Text
>>> @0xcert/merkle
npm run lint && npx nyc npx hayspec test
> @0xcert/merkle@2.1.1 lint /Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-merkle
> npx eslint 'src/**/*.ts?(x)'
src/tests/index.test.ts
exposes objects ⚑
src/tests/core/merkle/disclose-instance-method.test.ts
exposes 0 from empty array ⚑
exposes 0 from A, B, C, D ⚑
exposes 5 from A, B, C, D ⚑
src/tests/core/merkle/imprint-instance-method.test.ts
recreate from empty array ⚑
recreate from A, B, C, D with exposed indexes 1, 2 ⚑
recreate from from A, B, C, D, E, F, G, H with exposed indexes 7 ⚑
recreate from from A, B, C, D, E, F, G, H with exposed indexes 3, 5, 6 ⚑
src/tests/core/merkle/notarize-instance-method.test.ts
empty array ⚑
array with element A ⚑
recipe for values A,B,C,D ⚑
hasher function receives value, path and position parameters ⚑
with prepended path ⚑
recipe with custom noncer function ⚑
noncer function receives path parameter ⚑
15 passing
------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------|---------|----------|---------|---------|-------------------
All files | 96.43 | 90.91 | 90.48 | 95.83 |
src | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
src/core | 96.36 | 90.91 | 90.48 | 95.74 |
merkle.ts | 96.36 | 90.91 | 90.48 | 95.74 | 81-88
------------|---------|----------|---------|---------|-------------------