From 015326209c364799fac87a9681c7b7f392d3f634 Mon Sep 17 00:00:00 2001 From: aelf-lxy Date: Mon, 29 Jul 2024 20:03:58 +0800 Subject: [PATCH] feat: test badge --- .gitignore | 2 +- packages/utils/coverage/clover.xml | 282 ++++++++ packages/utils/coverage/coverage-final.json | 23 + packages/utils/coverage/coverage-summary.json | 24 + packages/utils/coverage/lcov.info | 640 ++++++++++++++++++ 5 files changed, 970 insertions(+), 1 deletion(-) create mode 100644 packages/utils/coverage/clover.xml create mode 100644 packages/utils/coverage/coverage-final.json create mode 100644 packages/utils/coverage/coverage-summary.json create mode 100644 packages/utils/coverage/lcov.info diff --git a/.gitignore b/.gitignore index 2ee76c15..73416052 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules -coverage +packages/utils/coverage/lcov-report dist .umi diff --git a/packages/utils/coverage/clover.xml b/packages/utils/coverage/clover.xml new file mode 100644 index 00000000..7bc27fc6 --- /dev/null +++ b/packages/utils/coverage/clover.xml @@ -0,0 +1,282 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/utils/coverage/coverage-final.json b/packages/utils/coverage/coverage-final.json new file mode 100644 index 00000000..c8bae525 --- /dev/null +++ b/packages/utils/coverage/coverage-final.json @@ -0,0 +1,23 @@ +{"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/address/addPrefixSuffix.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/address/addPrefixSuffix.ts","statementMap":{"0":{"start":{"line":2,"column":2},"end":{"line":2,"column":23}},"1":{"start":{"line":2,"column":12},"end":{"line":2,"column":23}},"2":{"start":{"line":3,"column":15},"end":{"line":3,"column":25}},"3":{"start":{"line":4,"column":17},"end":{"line":4,"column":23}},"4":{"start":{"line":5,"column":17},"end":{"line":5,"column":50}},"5":{"start":{"line":6,"column":2},"end":{"line":8,"column":3}},"6":{"start":{"line":7,"column":4},"end":{"line":7,"column":34}},"7":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":34}},"9":{"start":{"line":12,"column":2},"end":{"line":12,"column":16}}},"fnMap":{"0":{"name":"addPrefixSuffix","decl":{"start":{"line":1,"column":9},"end":{"line":1,"column":24}},"loc":{"start":{"line":1,"column":56},"end":{"line":13,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":23}},"type":"if","locations":[{"start":{"line":2,"column":2},"end":{"line":2,"column":23}},{"start":{},"end":{}}],"line":2},"1":{"loc":{"start":{"line":5,"column":17},"end":{"line":5,"column":50}},"type":"cond-expr","locations":[{"start":{"line":5,"column":27},"end":{"line":5,"column":40}},{"start":{"line":5,"column":43},"end":{"line":5,"column":50}}],"line":5},"2":{"loc":{"start":{"line":6,"column":2},"end":{"line":8,"column":3}},"type":"if","locations":[{"start":{"line":6,"column":2},"end":{"line":8,"column":3}},{"start":{},"end":{}}],"line":6},"3":{"loc":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},{"start":{},"end":{}}],"line":9}},"s":{"0":5,"1":1,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4,"8":4,"9":4},"f":{"0":5},"b":{"0":[1,4],"1":[1,3],"2":[4,0],"3":[4,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"7129cb57cab10de7be46abed60432ba208f68b1b"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/address/decodeAddress.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/address/decodeAddress.ts","statementMap":{"0":{"start":{"line":2,"column":29},"end":{"line":19,"column":1}},"1":{"start":{"line":3,"column":2},"end":{"line":18,"column":3}},"2":{"start":{"line":4,"column":4},"end":{"line":4,"column":31}},"3":{"start":{"line":4,"column":18},"end":{"line":4,"column":31}},"4":{"start":{"line":5,"column":4},"end":{"line":5,"column":55}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":55}},"6":{"start":{"line":6,"column":4},"end":{"line":14,"column":5}},"7":{"start":{"line":7,"column":20},"end":{"line":7,"column":38}},"8":{"start":{"line":8,"column":6},"end":{"line":8,"column":43}},"9":{"start":{"line":8,"column":30},"end":{"line":8,"column":43}},"10":{"start":{"line":10,"column":26},"end":{"line":10,"column":34}},"11":{"start":{"line":11,"column":6},"end":{"line":11,"column":47}},"12":{"start":{"line":13,"column":6},"end":{"line":13,"column":43}},"13":{"start":{"line":15,"column":4},"end":{"line":15,"column":16}},"14":{"start":{"line":17,"column":4},"end":{"line":17,"column":17}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":29},"end":{"line":2,"column":30}},"loc":{"start":{"line":2,"column":50},"end":{"line":19,"column":1}},"line":2}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":31}},"type":"if","locations":[{"start":{"line":4,"column":4},"end":{"line":4,"column":31}},{"start":{},"end":{}}],"line":4},"1":{"loc":{"start":{"line":5,"column":4},"end":{"line":5,"column":55}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":5,"column":55}},{"start":{},"end":{}}],"line":5},"2":{"loc":{"start":{"line":6,"column":4},"end":{"line":14,"column":5}},"type":"if","locations":[{"start":{"line":6,"column":4},"end":{"line":14,"column":5}},{"start":{"line":12,"column":11},"end":{"line":14,"column":5}}],"line":6},"3":{"loc":{"start":{"line":8,"column":6},"end":{"line":8,"column":43}},"type":"if","locations":[{"start":{"line":8,"column":6},"end":{"line":8,"column":43}},{"start":{},"end":{}}],"line":8}},"s":{"0":1,"1":6,"2":6,"3":1,"4":5,"5":1,"6":4,"7":2,"8":2,"9":1,"10":1,"11":1,"12":2,"13":2,"14":1},"f":{"0":6},"b":{"0":[1,5],"1":[1,4],"2":[2,2],"3":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"989c0f3e777a93b860fbbdd094e36945d788eff8"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/address/getOriginalAddress.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/address/getOriginalAddress.ts","statementMap":{"0":{"start":{"line":2,"column":2},"end":{"line":2,"column":27}},"1":{"start":{"line":2,"column":16},"end":{"line":2,"column":27}},"2":{"start":{"line":3,"column":2},"end":{"line":5,"column":3}},"3":{"start":{"line":4,"column":4},"end":{"line":4,"column":15}},"4":{"start":{"line":6,"column":2},"end":{"line":6,"column":58}}},"fnMap":{"0":{"name":"getOriginalAddress","decl":{"start":{"line":1,"column":9},"end":{"line":1,"column":27}},"loc":{"start":{"line":1,"column":45},"end":{"line":7,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":27}},"type":"if","locations":[{"start":{"line":2,"column":2},"end":{"line":2,"column":27}},{"start":{},"end":{}}],"line":2},"1":{"loc":{"start":{"line":3,"column":2},"end":{"line":5,"column":3}},"type":"if","locations":[{"start":{"line":3,"column":2},"end":{"line":5,"column":3}},{"start":{},"end":{}}],"line":3}},"s":{"0":6,"1":2,"2":4,"3":1,"4":3},"f":{"0":6},"b":{"0":[2,4],"1":[1,3]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d7435d2b91aa62f6afc366de4bb733f20d58b8af"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/calculate/divDecimals.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/calculate/divDecimals.ts","statementMap":{"0":{"start":{"line":4,"column":2},"end":{"line":4,"column":34}},"1":{"start":{"line":4,"column":10},"end":{"line":4,"column":34}},"2":{"start":{"line":5,"column":15},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":2},"end":{"line":6,"column":71}},"4":{"start":{"line":6,"column":47},"end":{"line":6,"column":71}},"5":{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},"6":{"start":{"line":8,"column":4},"end":{"line":8,"column":30}},"7":{"start":{"line":10,"column":2},"end":{"line":10,"column":35}}},"fnMap":{"0":{"name":"divDecimals","decl":{"start":{"line":3,"column":16},"end":{"line":3,"column":27}},"loc":{"start":{"line":3,"column":81},"end":{"line":11,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":49},"end":{"line":3,"column":79}},"type":"default-arg","locations":[{"start":{"line":3,"column":77},"end":{"line":3,"column":79}}],"line":3},"1":{"loc":{"start":{"line":4,"column":2},"end":{"line":4,"column":34}},"type":"if","locations":[{"start":{"line":4,"column":2},"end":{"line":4,"column":34}},{"start":{},"end":{}}],"line":4},"2":{"loc":{"start":{"line":5,"column":15},"end":{"line":5,"column":62}},"type":"cond-expr","locations":[{"start":{"line":5,"column":42},"end":{"line":5,"column":43}},{"start":{"line":5,"column":46},"end":{"line":5,"column":62}}],"line":5},"3":{"loc":{"start":{"line":6,"column":2},"end":{"line":6,"column":71}},"type":"if","locations":[{"start":{"line":6,"column":2},"end":{"line":6,"column":71}},{"start":{},"end":{}}],"line":6},"4":{"loc":{"start":{"line":6,"column":6},"end":{"line":6,"column":45}},"type":"binary-expr","locations":[{"start":{"line":6,"column":6},"end":{"line":6,"column":18}},{"start":{"line":6,"column":22},"end":{"line":6,"column":45}}],"line":6},"5":{"loc":{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},"type":"if","locations":[{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},{"start":{},"end":{}}],"line":7},"6":{"loc":{"start":{"line":7,"column":6},"end":{"line":7,"column":58}},"type":"binary-expr","locations":[{"start":{"line":7,"column":6},"end":{"line":7,"column":34}},{"start":{"line":7,"column":38},"end":{"line":7,"column":58}}],"line":7}},"s":{"0":8,"1":3,"2":5,"3":5,"4":1,"5":4,"6":1,"7":3},"f":{"0":8},"b":{"0":[5],"1":[3,5],"2":[1,4],"3":[1,4],"4":[5,5],"5":[1,3],"6":[4,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f4f94b1190897ac75d44128bd79d66d20d1a56c4"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/calculate/index.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/calculate/index.ts","statementMap":{},"fnMap":{},"branchMap":{},"s":{},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d36858d85c83144c1013387965deacfe35922075"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/calculate/timesDecimals.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/calculate/timesDecimals.ts","statementMap":{"0":{"start":{"line":4,"column":2},"end":{"line":4,"column":34}},"1":{"start":{"line":4,"column":10},"end":{"line":4,"column":34}},"2":{"start":{"line":5,"column":15},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":2},"end":{"line":6,"column":71}},"4":{"start":{"line":6,"column":47},"end":{"line":6,"column":71}},"5":{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},"6":{"start":{"line":8,"column":4},"end":{"line":8,"column":32}},"7":{"start":{"line":10,"column":2},"end":{"line":10,"column":37}}},"fnMap":{"0":{"name":"timesDecimals","decl":{"start":{"line":3,"column":16},"end":{"line":3,"column":29}},"loc":{"start":{"line":3,"column":83},"end":{"line":11,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":51},"end":{"line":3,"column":81}},"type":"default-arg","locations":[{"start":{"line":3,"column":79},"end":{"line":3,"column":81}}],"line":3},"1":{"loc":{"start":{"line":4,"column":2},"end":{"line":4,"column":34}},"type":"if","locations":[{"start":{"line":4,"column":2},"end":{"line":4,"column":34}},{"start":{},"end":{}}],"line":4},"2":{"loc":{"start":{"line":5,"column":15},"end":{"line":5,"column":62}},"type":"cond-expr","locations":[{"start":{"line":5,"column":42},"end":{"line":5,"column":43}},{"start":{"line":5,"column":46},"end":{"line":5,"column":62}}],"line":5},"3":{"loc":{"start":{"line":6,"column":2},"end":{"line":6,"column":71}},"type":"if","locations":[{"start":{"line":6,"column":2},"end":{"line":6,"column":71}},{"start":{},"end":{}}],"line":6},"4":{"loc":{"start":{"line":6,"column":6},"end":{"line":6,"column":45}},"type":"binary-expr","locations":[{"start":{"line":6,"column":6},"end":{"line":6,"column":18}},{"start":{"line":6,"column":22},"end":{"line":6,"column":45}}],"line":6},"5":{"loc":{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},"type":"if","locations":[{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},{"start":{},"end":{}}],"line":7},"6":{"loc":{"start":{"line":7,"column":6},"end":{"line":7,"column":58}},"type":"binary-expr","locations":[{"start":{"line":7,"column":6},"end":{"line":7,"column":34}},{"start":{"line":7,"column":38},"end":{"line":7,"column":58}}],"line":7}},"s":{"0":11,"1":3,"2":8,"3":8,"4":2,"5":6,"6":1,"7":5},"f":{"0":11},"b":{"0":[5],"1":[3,8],"2":[1,7],"3":[2,6],"4":[8,8],"5":[1,5],"6":[6,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"53e9f52c8236f914dd27156e22a65fdf513f54b3"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getRawTransaction.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getRawTransaction.ts","statementMap":{"0":{"start":{"line":16,"column":91},"end":{"line":72,"column":1}},"1":{"start":{"line":25,"column":2},"end":{"line":25,"column":22}},"2":{"start":{"line":25,"column":15},"end":{"line":25,"column":22}},"3":{"start":{"line":27,"column":12},"end":{"line":27,"column":16}},"4":{"start":{"line":29,"column":2},"end":{"line":71,"column":3}},"5":{"start":{"line":30,"column":4},"end":{"line":64,"column":5}},"6":{"start":{"line":32,"column":8},"end":{"line":32,"column":56}},"7":{"start":{"line":32,"column":49},"end":{"line":32,"column":56}},"8":{"start":{"line":33,"column":8},"end":{"line":41,"column":11}},"9":{"start":{"line":42,"column":8},"end":{"line":42,"column":14}},"10":{"start":{"line":44,"column":8},"end":{"line":44,"column":41}},"11":{"start":{"line":44,"column":34},"end":{"line":44,"column":41}},"12":{"start":{"line":45,"column":8},"end":{"line":52,"column":11}},"13":{"start":{"line":53,"column":8},"end":{"line":53,"column":14}},"14":{"start":{"line":55,"column":8},"end":{"line":55,"column":41}},"15":{"start":{"line":55,"column":34},"end":{"line":55,"column":41}},"16":{"start":{"line":56,"column":8},"end":{"line":62,"column":11}},"17":{"start":{"line":63,"column":8},"end":{"line":63,"column":14}},"18":{"start":{"line":66,"column":4},"end":{"line":66,"column":15}},"19":{"start":{"line":68,"column":4},"end":{"line":68,"column":50}},"20":{"start":{"line":70,"column":4},"end":{"line":70,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":16,"column":91},"end":{"line":16,"column":92}},"loc":{"start":{"line":24,"column":28},"end":{"line":72,"column":1}},"line":24}},"branchMap":{"0":{"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":22}},"type":"if","locations":[{"start":{"line":25,"column":2},"end":{"line":25,"column":22}},{"start":{},"end":{}}],"line":25},"1":{"loc":{"start":{"line":30,"column":4},"end":{"line":64,"column":5}},"type":"switch","locations":[{"start":{"line":31,"column":6},"end":{"line":42,"column":14}},{"start":{"line":43,"column":6},"end":{"line":53,"column":14}},{"start":{"line":54,"column":6},"end":{"line":63,"column":14}}],"line":30},"2":{"loc":{"start":{"line":32,"column":8},"end":{"line":32,"column":56}},"type":"if","locations":[{"start":{"line":32,"column":8},"end":{"line":32,"column":56}},{"start":{},"end":{}}],"line":32},"3":{"loc":{"start":{"line":37,"column":29},"end":{"line":37,"column":52}},"type":"binary-expr","locations":[{"start":{"line":37,"column":29},"end":{"line":37,"column":46}},{"start":{"line":37,"column":50},"end":{"line":37,"column":52}}],"line":37},"4":{"loc":{"start":{"line":44,"column":8},"end":{"line":44,"column":41}},"type":"if","locations":[{"start":{"line":44,"column":8},"end":{"line":44,"column":41}},{"start":{},"end":{}}],"line":44},"5":{"loc":{"start":{"line":55,"column":8},"end":{"line":55,"column":41}},"type":"if","locations":[{"start":{"line":55,"column":8},"end":{"line":55,"column":41}},{"start":{},"end":{}}],"line":55}},"s":{"0":1,"1":5,"2":1,"3":4,"4":4,"5":4,"6":1,"7":0,"8":1,"9":1,"10":2,"11":0,"12":2,"13":1,"14":1,"15":0,"16":1,"17":1,"18":3,"19":1,"20":1},"f":{"0":5},"b":{"0":[1,4],"1":[1,2,1],"2":[0,1],"3":[1,0],"4":[0,2],"5":[0,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"ade1c86384bc6a40b6968f6a85f8df1a99ca96e1"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getRawTransactionNight.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getRawTransactionNight.ts","statementMap":{"0":{"start":{"line":18,"column":19},"end":{"line":22,"column":4}},"1":{"start":{"line":23,"column":13},"end":{"line":23,"column":57}},"2":{"start":{"line":24,"column":2},"end":{"line":24,"column":17}}},"fnMap":{"0":{"name":"getRawTransactionNight","decl":{"start":{"line":11,"column":15},"end":{"line":11,"column":37}},"loc":{"start":{"line":17,"column":35},"end":{"line":25,"column":1}},"line":17}},"branchMap":{},"s":{"0":2,"1":1,"2":1},"f":{"0":2},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"32034172e16c9b12f2086265c1250112de7f52d0"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getRawTransactionPortkey.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getRawTransactionPortkey.ts","statementMap":{"0":{"start":{"line":14,"column":33},"end":{"line":39,"column":1}},"1":{"start":{"line":23,"column":2},"end":{"line":38,"column":3}},"2":{"start":{"line":24,"column":21},"end":{"line":31,"column":6}},"3":{"start":{"line":33,"column":14},"end":{"line":33,"column":58}},"4":{"start":{"line":35,"column":4},"end":{"line":35,"column":18}},"5":{"start":{"line":37,"column":4},"end":{"line":37,"column":33}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":14,"column":33},"end":{"line":14,"column":34}},"loc":{"start":{"line":22,"column":36},"end":{"line":39,"column":1}},"line":22}},"branchMap":{},"s":{"0":1,"1":2,"2":2,"3":1,"4":1,"5":1},"f":{"0":2},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"cfe89efabae4187431b8086d4c5bdee4436aa0b4"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getTxResultRetry.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getTxResultRetry.ts","statementMap":{"0":{"start":{"line":5,"column":14},"end":{"line":5,"column":26}},"1":{"start":{"line":6,"column":29},"end":{"line":6,"column":31}},"2":{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":72}},"4":{"start":{"line":11,"column":2},"end":{"line":11,"column":28}},"5":{"start":{"line":18,"column":2},"end":{"line":28,"column":3}},"6":{"start":{"line":19,"column":21},"end":{"line":19,"column":36}},"7":{"start":{"line":20,"column":21},"end":{"line":20,"column":75}},"8":{"start":{"line":21,"column":4},"end":{"line":25,"column":5}},"9":{"start":{"line":22,"column":6},"end":{"line":22,"column":22}},"10":{"start":{"line":24,"column":6},"end":{"line":24,"column":39}},"11":{"start":{"line":27,"column":4},"end":{"line":27,"column":19}}},"fnMap":{"0":{"name":"getAElf","decl":{"start":{"line":4,"column":16},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":41},"end":{"line":12,"column":1}},"line":4},"1":{"name":"getTxResultRetry","decl":{"start":{"line":13,"column":22},"end":{"line":13,"column":38}},"loc":{"start":{"line":17,"column":16},"end":{"line":29,"column":1}},"line":17}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":14},"end":{"line":5,"column":26}},"type":"binary-expr","locations":[{"start":{"line":5,"column":14},"end":{"line":5,"column":20}},{"start":{"line":5,"column":24},"end":{"line":5,"column":26}}],"line":5},"1":{"loc":{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},"type":"if","locations":[{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},{"start":{},"end":{}}],"line":8},"2":{"loc":{"start":{"line":16,"column":2},"end":{"line":16,"column":19}},"type":"default-arg","locations":[{"start":{"line":16,"column":15},"end":{"line":16,"column":19}}],"line":16},"3":{"loc":{"start":{"line":21,"column":4},"end":{"line":25,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":25,"column":5}},{"start":{"line":23,"column":11},"end":{"line":25,"column":5}}],"line":21}},"s":{"0":7,"1":7,"2":7,"3":7,"4":7,"5":2,"6":2,"7":2,"8":2,"9":1,"10":1,"11":1},"f":{"0":7,"1":2},"b":{"0":[7,0],"1":[7,0],"2":[2],"3":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5d8a34b42123949b023783bc3197bd2659e98259"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/useCheckAllowanceAndApprove.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/useCheckAllowanceAndApprove.ts","statementMap":{"0":{"start":{"line":23,"column":36},"end":{"line":110,"column":1}},"1":{"start":{"line":38,"column":45},"end":{"line":38,"column":63}},"2":{"start":{"line":39,"column":32},"end":{"line":39,"column":47}},"3":{"start":{"line":41,"column":16},"end":{"line":107,"column":4}},"4":{"start":{"line":42,"column":4},"end":{"line":97,"column":5}},"5":{"start":{"line":43,"column":6},"end":{"line":43,"column":23}},"6":{"start":{"line":44,"column":57},"end":{"line":65,"column":8}},"7":{"start":{"line":67,"column":26},"end":{"line":67,"column":85}},"8":{"start":{"line":68,"column":19},"end":{"line":68,"column":65}},"9":{"start":{"line":70,"column":6},"end":{"line":91,"column":7}},"10":{"start":{"line":71,"column":30},"end":{"line":71,"column":45}},"11":{"start":{"line":73,"column":8},"end":{"line":89,"column":11}},"12":{"start":{"line":90,"column":8},"end":{"line":90,"column":20}},"13":{"start":{"line":92,"column":6},"end":{"line":92,"column":18}},"14":{"start":{"line":94,"column":6},"end":{"line":94,"column":15}},"15":{"start":{"line":96,"column":6},"end":{"line":96,"column":24}},"16":{"start":{"line":109,"column":2},"end":{"line":109,"column":28}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":23,"column":36},"end":{"line":23,"column":37}},"loc":{"start":{"line":37,"column":6},"end":{"line":110,"column":1}},"line":37},"1":{"name":"(anonymous_1)","decl":{"start":{"line":41,"column":28},"end":{"line":41,"column":29}},"loc":{"start":{"line":41,"column":40},"end":{"line":98,"column":3}},"line":41}},"branchMap":{"0":{"loc":{"start":{"line":67,"column":40},"end":{"line":67,"column":84}},"type":"binary-expr","locations":[{"start":{"line":67,"column":40},"end":{"line":67,"column":59}},{"start":{"line":67,"column":63},"end":{"line":67,"column":79}},{"start":{"line":67,"column":83},"end":{"line":67,"column":84}}],"line":67},"1":{"loc":{"start":{"line":68,"column":41},"end":{"line":68,"column":64}},"type":"binary-expr","locations":[{"start":{"line":68,"column":41},"end":{"line":68,"column":59}},{"start":{"line":68,"column":63},"end":{"line":68,"column":64}}],"line":68},"2":{"loc":{"start":{"line":70,"column":6},"end":{"line":91,"column":7}},"type":"if","locations":[{"start":{"line":70,"column":6},"end":{"line":91,"column":7}},{"start":{},"end":{}}],"line":70}},"s":{"0":1,"1":6,"2":6,"3":6,"4":3,"5":3,"6":3,"7":2,"8":2,"9":2,"10":1,"11":1,"12":1,"13":1,"14":1,"15":3,"16":6},"f":{"0":6,"1":3},"b":{"0":[2,1,1],"1":[2,1],"2":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"be8b76ae59ac0d3ffb2b0badf956515aac0b23cd"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/useGetBalance.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/useGetBalance.ts","statementMap":{"0":{"start":{"line":5,"column":22},"end":{"line":40,"column":1}},"1":{"start":{"line":16,"column":29},"end":{"line":16,"column":47}},"2":{"start":{"line":17,"column":32},"end":{"line":17,"column":47}},"3":{"start":{"line":19,"column":21},"end":{"line":37,"column":70}},"4":{"start":{"line":20,"column":4},"end":{"line":36,"column":5}},"5":{"start":{"line":21,"column":6},"end":{"line":21,"column":23}},"6":{"start":{"line":22,"column":17},"end":{"line":30,"column":8}},"7":{"start":{"line":31,"column":6},"end":{"line":31,"column":16}},"8":{"start":{"line":33,"column":6},"end":{"line":33,"column":15}},"9":{"start":{"line":35,"column":6},"end":{"line":35,"column":24}},"10":{"start":{"line":39,"column":2},"end":{"line":39,"column":33}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":5,"column":22},"end":{"line":5,"column":23}},"loc":{"start":{"line":15,"column":6},"end":{"line":40,"column":1}},"line":15},"1":{"name":"(anonymous_1)","decl":{"start":{"line":19,"column":33},"end":{"line":19,"column":34}},"loc":{"start":{"line":19,"column":45},"end":{"line":37,"column":3}},"line":19}},"branchMap":{},"s":{"0":1,"1":2,"2":2,"3":2,"4":1,"5":1,"6":1,"7":1,"8":0,"9":1,"10":2},"f":{"0":2,"1":1},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"437c7ef58f295ce5de516303eed8d7f9d60b33a6"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/format/formatNumberWithDecimalPlaces.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/format/formatNumberWithDecimalPlaces.ts","statementMap":{"0":{"start":{"line":2,"column":13},"end":{"line":2,"column":29}},"1":{"start":{"line":4,"column":15},"end":{"line":4,"column":29}},"2":{"start":{"line":5,"column":2},"end":{"line":5,"column":36}},"3":{"start":{"line":5,"column":20},"end":{"line":5,"column":36}},"4":{"start":{"line":6,"column":2},"end":{"line":6,"column":75}}},"fnMap":{"0":{"name":"formatNumberWithDecimalPlaces","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":38}},"loc":{"start":{"line":3,"column":74},"end":{"line":7,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":61},"end":{"line":3,"column":72}},"type":"default-arg","locations":[{"start":{"line":3,"column":71},"end":{"line":3,"column":72}}],"line":3},"1":{"loc":{"start":{"line":5,"column":2},"end":{"line":5,"column":36}},"type":"if","locations":[{"start":{"line":5,"column":2},"end":{"line":5,"column":36}},{"start":{},"end":{}}],"line":5}},"s":{"0":1,"1":8,"2":8,"3":1,"4":7},"f":{"0":8},"b":{"0":[4],"1":[1,7]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0252c6c7d950255117c5750ce9f678c6872b77b4"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/format/formatPrice.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/format/formatPrice.ts","statementMap":{"0":{"start":{"line":15,"column":6},"end":{"line":15,"column":24}},"1":{"start":{"line":16,"column":30},"end":{"line":16,"column":89}},"2":{"start":{"line":17,"column":2},"end":{"line":17,"column":42}},"3":{"start":{"line":17,"column":24},"end":{"line":17,"column":42}},"4":{"start":{"line":19,"column":2},"end":{"line":21,"column":3}},"5":{"start":{"line":20,"column":4},"end":{"line":20,"column":27}},"6":{"start":{"line":23,"column":21},"end":{"line":23,"column":66}},"7":{"start":{"line":24,"column":14},"end":{"line":24,"column":50}},"8":{"start":{"line":25,"column":2},"end":{"line":25,"column":13}}},"fnMap":{"0":{"name":"formatPrice","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":20}},"loc":{"start":{"line":10,"column":2},"end":{"line":26,"column":1}},"line":10}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":4},"end":{"line":12,"column":21}},"type":"default-arg","locations":[{"start":{"line":12,"column":20},"end":{"line":12,"column":21}}],"line":12},"1":{"loc":{"start":{"line":13,"column":4},"end":{"line":13,"column":39}},"type":"default-arg","locations":[{"start":{"line":13,"column":19},"end":{"line":13,"column":39}}],"line":13},"2":{"loc":{"start":{"line":14,"column":4},"end":{"line":14,"column":19}},"type":"default-arg","locations":[{"start":{"line":14,"column":15},"end":{"line":14,"column":19}}],"line":14},"3":{"loc":{"start":{"line":15,"column":6},"end":{"line":15,"column":24}},"type":"binary-expr","locations":[{"start":{"line":15,"column":6},"end":{"line":15,"column":18}},{"start":{"line":15,"column":22},"end":{"line":15,"column":24}}],"line":15},"4":{"loc":{"start":{"line":16,"column":30},"end":{"line":16,"column":89}},"type":"cond-expr","locations":[{"start":{"line":16,"column":61},"end":{"line":16,"column":66}},{"start":{"line":16,"column":69},"end":{"line":16,"column":89}}],"line":16},"5":{"loc":{"start":{"line":17,"column":2},"end":{"line":17,"column":42}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":17,"column":42}},{"start":{},"end":{}}],"line":17},"6":{"loc":{"start":{"line":19,"column":2},"end":{"line":21,"column":3}},"type":"if","locations":[{"start":{"line":19,"column":2},"end":{"line":21,"column":3}},{"start":{},"end":{}}],"line":19},"7":{"loc":{"start":{"line":19,"column":6},"end":{"line":19,"column":53}},"type":"binary-expr","locations":[{"start":{"line":19,"column":6},"end":{"line":19,"column":28}},{"start":{"line":19,"column":32},"end":{"line":19,"column":53}}],"line":19}},"s":{"0":8,"1":8,"2":8,"3":1,"4":7,"5":1,"6":6,"7":6,"8":6},"f":{"0":8},"b":{"0":[4],"1":[6],"2":[6],"3":[8,3],"4":[1,7],"5":[1,7],"6":[1,6],"7":[7,7]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"075a4114c7469dcb7f856b895dea7fbeae184d74"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/format/formatTime.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/format/formatTime.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":23}},"1":{"start":{"line":22,"column":2},"end":{"line":22,"column":37}},"2":{"start":{"line":33,"column":2},"end":{"line":39,"column":3}},"3":{"start":{"line":34,"column":4},"end":{"line":34,"column":40}},"4":{"start":{"line":35,"column":9},"end":{"line":39,"column":3}},"5":{"start":{"line":36,"column":4},"end":{"line":36,"column":33}},"6":{"start":{"line":38,"column":4},"end":{"line":38,"column":33}}},"fnMap":{"0":{"name":"formatTime","decl":{"start":{"line":21,"column":9},"end":{"line":21,"column":19}},"loc":{"start":{"line":21,"column":67},"end":{"line":23,"column":1}},"line":21},"1":{"name":"createDuration","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":23}},"loc":{"start":{"line":32,"column":12},"end":{"line":40,"column":1}},"line":32}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":43},"end":{"line":21,"column":65}},"type":"default-arg","locations":[{"start":{"line":21,"column":53},"end":{"line":21,"column":65}}],"line":21},"1":{"loc":{"start":{"line":33,"column":2},"end":{"line":39,"column":3}},"type":"if","locations":[{"start":{"line":33,"column":2},"end":{"line":39,"column":3}},{"start":{"line":35,"column":9},"end":{"line":39,"column":3}}],"line":33},"2":{"loc":{"start":{"line":35,"column":9},"end":{"line":39,"column":3}},"type":"if","locations":[{"start":{"line":35,"column":9},"end":{"line":39,"column":3}},{"start":{"line":37,"column":9},"end":{"line":39,"column":3}}],"line":35}},"s":{"0":1,"1":3,"2":3,"3":1,"4":2,"5":1,"6":1},"f":{"0":3,"1":3},"b":{"0":[2],"1":[1,2],"2":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"42ff05db0d174a2567be1d1f54a821f6057591b5"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isAElfBridge.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isAElfBridge.ts","statementMap":{"0":{"start":{"line":5,"column":2},"end":{"line":5,"column":54}}},"fnMap":{"0":{"name":"isAElfBridge","decl":{"start":{"line":4,"column":16},"end":{"line":4,"column":28}},"loc":{"start":{"line":4,"column":57},"end":{"line":6,"column":1}},"line":4}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":12},"end":{"line":5,"column":52}},"type":"binary-expr","locations":[{"start":{"line":5,"column":12},"end":{"line":5,"column":30}},{"start":{"line":5,"column":34},"end":{"line":5,"column":52}}],"line":5}},"s":{"0":2},"f":{"0":2},"b":{"0":[2,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d8ff657e803b7249e8a5d2403f2c3dfd16925ef6"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isELFAddress.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isELFAddress.ts","statementMap":{"0":{"start":{"line":4,"column":2},"end":{"line":4,"column":50}},"1":{"start":{"line":4,"column":37},"end":{"line":4,"column":50}},"2":{"start":{"line":5,"column":2},"end":{"line":9,"column":3}},"3":{"start":{"line":6,"column":4},"end":{"line":6,"column":48}},"4":{"start":{"line":8,"column":4},"end":{"line":8,"column":17}}},"fnMap":{"0":{"name":"isELFAddress","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":21}},"loc":{"start":{"line":3,"column":37},"end":{"line":10,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":2},"end":{"line":4,"column":50}},"type":"if","locations":[{"start":{"line":4,"column":2},"end":{"line":4,"column":50}},{"start":{},"end":{}}],"line":4}},"s":{"0":3,"1":1,"2":2,"3":2,"4":1},"f":{"0":3},"b":{"0":[1,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"43ae17bd9d761fb90f94bc131b116ca1476faa04"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isMobileDevices.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isMobileDevices.ts","statementMap":{"0":{"start":{"line":1,"column":20},"end":{"line":1,"column":29}},"1":{"start":{"line":2,"column":18},"end":{"line":2,"column":25}},"2":{"start":{"line":3,"column":20},"end":{"line":3,"column":27}},"3":{"start":{"line":4,"column":23},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":21},"end":{"line":5,"column":47}},"5":{"start":{"line":6,"column":22},"end":{"line":6,"column":32}},"6":{"start":{"line":7,"column":20},"end":{"line":7,"column":56}},"7":{"start":{"line":8,"column":21},"end":{"line":8,"column":28}},"8":{"start":{"line":9,"column":21},"end":{"line":9,"column":37}},"9":{"start":{"line":10,"column":22},"end":{"line":10,"column":45}},"10":{"start":{"line":11,"column":24},"end":{"line":11,"column":37}},"11":{"start":{"line":12,"column":26},"end":{"line":12,"column":33}},"12":{"start":{"line":13,"column":19},"end":{"line":13,"column":32}},"13":{"start":{"line":14,"column":20},"end":{"line":14,"column":51}},"14":{"start":{"line":15,"column":21},"end":{"line":15,"column":45}},"15":{"start":{"line":24,"column":29},"end":{"line":31,"column":1}},"16":{"start":{"line":25,"column":2},"end":{"line":30,"column":4}},"17":{"start":{"line":34,"column":2},"end":{"line":34,"column":59}},"18":{"start":{"line":34,"column":37},"end":{"line":34,"column":58}},"19":{"start":{"line":76,"column":23},"end":{"line":80,"column":3}},"20":{"start":{"line":82,"column":2},"end":{"line":96,"column":3}},"21":{"start":{"line":83,"column":4},"end":{"line":87,"column":6}},"22":{"start":{"line":88,"column":9},"end":{"line":96,"column":3}},"23":{"start":{"line":89,"column":4},"end":{"line":89,"column":26}},"24":{"start":{"line":90,"column":9},"end":{"line":96,"column":3}},"25":{"start":{"line":91,"column":4},"end":{"line":95,"column":6}},"26":{"start":{"line":98,"column":18},"end":{"line":98,"column":31}},"27":{"start":{"line":102,"column":12},"end":{"line":102,"column":36}},"28":{"start":{"line":103,"column":2},"end":{"line":105,"column":3}},"29":{"start":{"line":104,"column":4},"end":{"line":104,"column":23}},"30":{"start":{"line":110,"column":2},"end":{"line":110,"column":35}},"31":{"start":{"line":111,"column":2},"end":{"line":113,"column":3}},"32":{"start":{"line":112,"column":4},"end":{"line":112,"column":23}},"33":{"start":{"line":115,"column":16},"end":{"line":115,"column":38}},"34":{"start":{"line":117,"column":33},"end":{"line":177,"column":3}},"35":{"start":{"line":179,"column":2},"end":{"line":180,"column":97}},"36":{"start":{"line":182,"column":2},"end":{"line":182,"column":84}},"37":{"start":{"line":183,"column":2},"end":{"line":183,"column":88}},"38":{"start":{"line":185,"column":2},"end":{"line":185,"column":16}},"39":{"start":{"line":189,"column":14},"end":{"line":189,"column":24}},"40":{"start":{"line":190,"column":2},"end":{"line":190,"column":48}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":24,"column":29},"end":{"line":24,"column":30}},"loc":{"start":{"line":24,"column":65},"end":{"line":31,"column":1}},"line":24},"1":{"name":"createMatch","decl":{"start":{"line":33,"column":9},"end":{"line":33,"column":20}},"loc":{"start":{"line":33,"column":71},"end":{"line":35,"column":1}},"line":33},"2":{"name":"(anonymous_2)","decl":{"start":{"line":34,"column":9},"end":{"line":34,"column":10}},"loc":{"start":{"line":34,"column":37},"end":{"line":34,"column":58}},"line":34},"3":{"name":"isMobile","decl":{"start":{"line":75,"column":16},"end":{"line":75,"column":24}},"loc":{"start":{"line":75,"column":68},"end":{"line":186,"column":1}},"line":75},"4":{"name":"isMobileDevices","decl":{"start":{"line":188,"column":16},"end":{"line":188,"column":31}},"loc":{"start":{"line":188,"column":34},"end":{"line":191,"column":1}},"line":188}},"branchMap":{"0":{"loc":{"start":{"line":26,"column":4},"end":{"line":29,"column":32}},"type":"binary-expr","locations":[{"start":{"line":26,"column":4},"end":{"line":26,"column":36}},{"start":{"line":27,"column":4},"end":{"line":27,"column":37}},{"start":{"line":28,"column":4},"end":{"line":28,"column":48}},{"start":{"line":29,"column":4},"end":{"line":29,"column":32}}],"line":26},"1":{"loc":{"start":{"line":82,"column":2},"end":{"line":96,"column":3}},"type":"if","locations":[{"start":{"line":82,"column":2},"end":{"line":96,"column":3}},{"start":{"line":88,"column":9},"end":{"line":96,"column":3}}],"line":82},"2":{"loc":{"start":{"line":82,"column":6},"end":{"line":82,"column":48}},"type":"binary-expr","locations":[{"start":{"line":82,"column":6},"end":{"line":82,"column":12}},{"start":{"line":82,"column":16},"end":{"line":82,"column":48}}],"line":82},"3":{"loc":{"start":{"line":86,"column":22},"end":{"line":86,"column":51}},"type":"binary-expr","locations":[{"start":{"line":86,"column":22},"end":{"line":86,"column":46}},{"start":{"line":86,"column":50},"end":{"line":86,"column":51}}],"line":86},"4":{"loc":{"start":{"line":88,"column":9},"end":{"line":96,"column":3}},"type":"if","locations":[{"start":{"line":88,"column":9},"end":{"line":96,"column":3}},{"start":{"line":90,"column":9},"end":{"line":96,"column":3}}],"line":88},"5":{"loc":{"start":{"line":90,"column":9},"end":{"line":96,"column":3}},"type":"if","locations":[{"start":{"line":90,"column":9},"end":{"line":96,"column":3}},{"start":{},"end":{}}],"line":90},"6":{"loc":{"start":{"line":90,"column":13},"end":{"line":90,"column":37}},"type":"binary-expr","locations":[{"start":{"line":90,"column":13},"end":{"line":90,"column":18}},{"start":{"line":90,"column":22},"end":{"line":90,"column":37}}],"line":90},"7":{"loc":{"start":{"line":94,"column":22},"end":{"line":94,"column":47}},"type":"binary-expr","locations":[{"start":{"line":94,"column":22},"end":{"line":94,"column":42}},{"start":{"line":94,"column":46},"end":{"line":94,"column":47}}],"line":94},"8":{"loc":{"start":{"line":103,"column":2},"end":{"line":105,"column":3}},"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":105,"column":3}},{"start":{},"end":{}}],"line":103},"9":{"loc":{"start":{"line":111,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":111,"column":2},"end":{"line":113,"column":3}},{"start":{},"end":{}}],"line":111},"10":{"loc":{"start":{"line":119,"column":13},"end":{"line":119,"column":55}},"type":"binary-expr","locations":[{"start":{"line":119,"column":13},"end":{"line":119,"column":31}},{"start":{"line":119,"column":35},"end":{"line":119,"column":55}}],"line":119},"11":{"loc":{"start":{"line":122,"column":8},"end":{"line":124,"column":28}},"type":"binary-expr","locations":[{"start":{"line":122,"column":8},"end":{"line":122,"column":27}},{"start":{"line":123,"column":9},"end":{"line":123,"column":27}},{"start":{"line":123,"column":31},"end":{"line":123,"column":56}},{"start":{"line":124,"column":8},"end":{"line":124,"column":28}}],"line":122},"12":{"loc":{"start":{"line":127,"column":8},"end":{"line":132,"column":28}},"type":"binary-expr","locations":[{"start":{"line":127,"column":9},"end":{"line":127,"column":27}},{"start":{"line":128,"column":10},"end":{"line":128,"column":26}},{"start":{"line":129,"column":10},"end":{"line":129,"column":28}},{"start":{"line":130,"column":10},"end":{"line":130,"column":31}},{"start":{"line":131,"column":10},"end":{"line":131,"column":35}},{"start":{"line":132,"column":8},"end":{"line":132,"column":28}}],"line":127},"13":{"loc":{"start":{"line":136,"column":14},"end":{"line":136,"column":56}},"type":"binary-expr","locations":[{"start":{"line":136,"column":14},"end":{"line":136,"column":33}},{"start":{"line":136,"column":37},"end":{"line":136,"column":56}}],"line":136},"14":{"loc":{"start":{"line":137,"column":14},"end":{"line":137,"column":55}},"type":"binary-expr","locations":[{"start":{"line":137,"column":14},"end":{"line":137,"column":32}},{"start":{"line":137,"column":36},"end":{"line":137,"column":55}}],"line":137},"15":{"loc":{"start":{"line":141,"column":8},"end":{"line":142,"column":53}},"type":"binary-expr","locations":[{"start":{"line":141,"column":9},"end":{"line":141,"column":29}},{"start":{"line":141,"column":33},"end":{"line":141,"column":51}},{"start":{"line":142,"column":9},"end":{"line":142,"column":29}},{"start":{"line":142,"column":33},"end":{"line":142,"column":52}}],"line":141},"16":{"loc":{"start":{"line":144,"column":8},"end":{"line":147,"column":53}},"type":"binary-expr","locations":[{"start":{"line":144,"column":8},"end":{"line":144,"column":28}},{"start":{"line":145,"column":8},"end":{"line":145,"column":27}},{"start":{"line":146,"column":8},"end":{"line":146,"column":28}},{"start":{"line":147,"column":9},"end":{"line":147,"column":28}},{"start":{"line":147,"column":32},"end":{"line":147,"column":52}}],"line":144},"17":{"loc":{"start":{"line":149,"column":8},"end":{"line":154,"column":28}},"type":"binary-expr","locations":[{"start":{"line":149,"column":9},"end":{"line":149,"column":29}},{"start":{"line":150,"column":11},"end":{"line":150,"column":29}},{"start":{"line":151,"column":12},"end":{"line":151,"column":31}},{"start":{"line":152,"column":12},"end":{"line":152,"column":31}},{"start":{"line":153,"column":12},"end":{"line":153,"column":32}},{"start":{"line":154,"column":8},"end":{"line":154,"column":28}}],"line":149},"18":{"loc":{"start":{"line":159,"column":14},"end":{"line":159,"column":57}},"type":"binary-expr","locations":[{"start":{"line":159,"column":14},"end":{"line":159,"column":33}},{"start":{"line":159,"column":37},"end":{"line":159,"column":57}}],"line":159},"19":{"loc":{"start":{"line":168,"column":8},"end":{"line":172,"column":26}},"type":"binary-expr","locations":[{"start":{"line":168,"column":8},"end":{"line":168,"column":30}},{"start":{"line":169,"column":8},"end":{"line":169,"column":32}},{"start":{"line":170,"column":8},"end":{"line":170,"column":25}},{"start":{"line":171,"column":8},"end":{"line":171,"column":27}},{"start":{"line":172,"column":8},"end":{"line":172,"column":26}}],"line":168},"20":{"loc":{"start":{"line":180,"column":4},"end":{"line":180,"column":96}},"type":"binary-expr","locations":[{"start":{"line":180,"column":4},"end":{"line":180,"column":23}},{"start":{"line":180,"column":27},"end":{"line":180,"column":48}},{"start":{"line":180,"column":52},"end":{"line":180,"column":73}},{"start":{"line":180,"column":77},"end":{"line":180,"column":96}}],"line":180},"21":{"loc":{"start":{"line":182,"column":17},"end":{"line":182,"column":83}},"type":"binary-expr","locations":[{"start":{"line":182,"column":17},"end":{"line":182,"column":35}},{"start":{"line":182,"column":39},"end":{"line":182,"column":59}},{"start":{"line":182,"column":63},"end":{"line":182,"column":83}}],"line":182},"22":{"loc":{"start":{"line":183,"column":18},"end":{"line":183,"column":87}},"type":"binary-expr","locations":[{"start":{"line":183,"column":18},"end":{"line":183,"column":37}},{"start":{"line":183,"column":41},"end":{"line":183,"column":62}},{"start":{"line":183,"column":66},"end":{"line":183,"column":87}}],"line":183},"23":{"loc":{"start":{"line":190,"column":9},"end":{"line":190,"column":47}},"type":"binary-expr","locations":[{"start":{"line":190,"column":9},"end":{"line":190,"column":25}},{"start":{"line":190,"column":29},"end":{"line":190,"column":47}}],"line":190}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":2,"17":2,"18":84,"19":2,"20":2,"21":2,"22":0,"23":0,"24":0,"25":0,"26":2,"27":2,"28":2,"29":0,"30":2,"31":2,"32":0,"33":2,"34":2,"35":2,"36":2,"37":2,"38":2,"39":2,"40":2},"f":{"0":2,"1":2,"2":84,"3":2,"4":2},"b":{"0":[2,2,0,0],"1":[2,0],"2":[2,2],"3":[2,2],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,2],"9":[0,2],"10":[2,1],"11":[2,1,1,0],"12":[2,1,1,1,1,1],"13":[2,2],"14":[2,2],"15":[2,2,2,2],"16":[2,2,2,2,2],"17":[2,2,2,2,2,2],"18":[2,2],"19":[2,2,2,2,2],"20":[2,1,1,1],"21":[2,1,1],"22":[2,2,2],"23":[2,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"82b9d37051b230c0052712ae4e5bc98fd84a0c6c"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isPortkeyApp.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isPortkeyApp.ts","statementMap":{"0":{"start":{"line":2,"column":2},"end":{"line":6,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":17}},"2":{"start":{"line":5,"column":4},"end":{"line":5,"column":58}}},"fnMap":{"0":{"name":"isPortkeyApp","decl":{"start":{"line":1,"column":16},"end":{"line":1,"column":28}},"loc":{"start":{"line":1,"column":31},"end":{"line":7,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":2},"end":{"line":6,"column":3}},"type":"if","locations":[{"start":{"line":2,"column":2},"end":{"line":6,"column":3}},{"start":{"line":4,"column":9},"end":{"line":6,"column":3}}],"line":2}},"s":{"0":2,"1":1,"2":1},"f":{"0":2},"b":{"0":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"1ed7b43151466a62a42d706e082632997327ef65"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isPrivateKey.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isPrivateKey.ts","statementMap":{"0":{"start":{"line":2,"column":2},"end":{"line":8,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":5,"column":5}},"2":{"start":{"line":4,"column":6},"end":{"line":4,"column":75}},"3":{"start":{"line":7,"column":4},"end":{"line":7,"column":17}},"4":{"start":{"line":9,"column":2},"end":{"line":9,"column":15}}},"fnMap":{"0":{"name":"isPrivateKey","decl":{"start":{"line":1,"column":16},"end":{"line":1,"column":28}},"loc":{"start":{"line":1,"column":50},"end":{"line":10,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":4},"end":{"line":5,"column":5}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":5,"column":5}},{"start":{},"end":{}}],"line":3},"1":{"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":52}},"type":"binary-expr","locations":[{"start":{"line":3,"column":8},"end":{"line":3,"column":18}},{"start":{"line":3,"column":22},"end":{"line":3,"column":52}}],"line":3}},"s":{"0":3,"1":3,"2":2,"3":1,"4":1},"f":{"0":3},"b":{"0":[2,1],"1":[3,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f0077349f30e3216afcaf5b95239a7d7a74ff48a"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/utility/Loading.tsx": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/utility/Loading.tsx","statementMap":{"0":{"start":{"line":4,"column":45},"end":{"line":4,"column":49}},"1":{"start":{"line":5,"column":30},"end":{"line":5,"column":34}},"2":{"start":{"line":9,"column":4},"end":{"line":9,"column":28}},"3":{"start":{"line":13,"column":4},"end":{"line":17,"column":5}},"4":{"start":{"line":14,"column":6},"end":{"line":14,"column":53}},"5":{"start":{"line":15,"column":6},"end":{"line":15,"column":48}},"6":{"start":{"line":16,"column":6},"end":{"line":16,"column":45}},"7":{"start":{"line":21,"column":4},"end":{"line":21,"column":27}},"8":{"start":{"line":23,"column":4},"end":{"line":23,"column":56}},"9":{"start":{"line":27,"column":4},"end":{"line":27,"column":29}},"10":{"start":{"line":31,"column":4},"end":{"line":31,"column":30}},"11":{"start":{"line":32,"column":4},"end":{"line":37,"column":5}},"12":{"start":{"line":33,"column":6},"end":{"line":33,"column":27}},"13":{"start":{"line":34,"column":6},"end":{"line":34,"column":48}},"14":{"start":{"line":35,"column":6},"end":{"line":35,"column":28}},"15":{"start":{"line":36,"column":6},"end":{"line":36,"column":23}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":2},"end":{"line":8,"column":3}},"loc":{"start":{"line":8,"column":38},"end":{"line":10,"column":3}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":2},"end":{"line":12,"column":3}},"loc":{"start":{"line":12,"column":28},"end":{"line":18,"column":3}},"line":12},"2":{"name":"(anonymous_2)","decl":{"start":{"line":20,"column":2},"end":{"line":20,"column":3}},"loc":{"start":{"line":20,"column":42},"end":{"line":24,"column":3}},"line":20},"3":{"name":"(anonymous_3)","decl":{"start":{"line":26,"column":2},"end":{"line":26,"column":3}},"loc":{"start":{"line":26,"column":9},"end":{"line":28,"column":3}},"line":26},"4":{"name":"(anonymous_4)","decl":{"start":{"line":30,"column":2},"end":{"line":30,"column":3}},"loc":{"start":{"line":30,"column":9},"end":{"line":38,"column":3}},"line":30}},"branchMap":{"0":{"loc":{"start":{"line":13,"column":4},"end":{"line":17,"column":5}},"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":17,"column":5}},{"start":{},"end":{}}],"line":13},"1":{"loc":{"start":{"line":23,"column":22},"end":{"line":23,"column":54}},"type":"cond-expr","locations":[{"start":{"line":23,"column":32},"end":{"line":23,"column":47}},{"start":{"line":23,"column":50},"end":{"line":23,"column":54}}],"line":23},"2":{"loc":{"start":{"line":32,"column":4},"end":{"line":37,"column":5}},"type":"if","locations":[{"start":{"line":32,"column":4},"end":{"line":37,"column":5}},{"start":{},"end":{}}],"line":32}},"s":{"0":4,"1":4,"2":4,"3":4,"4":3,"5":3,"6":3,"7":4,"8":4,"9":3,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1},"f":{"0":4,"1":4,"2":4,"3":3,"4":1},"b":{"0":[3,1],"1":[3,1],"2":[1,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d1b2e7b75f227d9c2a2afaca19b603ca9f0ea4e4"} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/utility/sleep.ts": {"path":"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/utility/sleep.ts","statementMap":{"0":{"start":{"line":2,"column":2},"end":{"line":2,"column":69}},"1":{"start":{"line":2,"column":34},"end":{"line":2,"column":67}}},"fnMap":{"0":{"name":"sleep","decl":{"start":{"line":1,"column":9},"end":{"line":1,"column":14}},"loc":{"start":{"line":1,"column":52},"end":{"line":3,"column":1}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":2,"column":21},"end":{"line":2,"column":22}},"loc":{"start":{"line":2,"column":34},"end":{"line":2,"column":67}},"line":2}},"branchMap":{},"s":{"0":1,"1":1},"f":{"0":1,"1":1},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"49e1a28dfeb96cf7cd575a64842c2e71a804aa20"} +} diff --git a/packages/utils/coverage/coverage-summary.json b/packages/utils/coverage/coverage-summary.json new file mode 100644 index 00000000..6fada63a --- /dev/null +++ b/packages/utils/coverage/coverage-summary.json @@ -0,0 +1,24 @@ +{"total": {"lines":{"total":192,"covered":185,"skipped":0,"pct":96.35},"statements":{"total":210,"covered":200,"skipped":0,"pct":95.23},"functions":{"total":34,"covered":34,"skipped":0,"pct":100},"branches":{"total":182,"covered":159,"skipped":0,"pct":87.36},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/address/addPrefixSuffix.ts": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":8,"covered":6,"skipped":0,"pct":75}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/address/decodeAddress.ts": {"lines":{"total":12,"covered":12,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":15,"covered":15,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/address/getOriginalAddress.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/calculate/divDecimals.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":13,"covered":13,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/calculate/index.ts": {"lines":{"total":0,"covered":0,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":0,"covered":0,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/calculate/timesDecimals.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":13,"covered":13,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getRawTransaction.ts": {"lines":{"total":17,"covered":17,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":21,"covered":18,"skipped":0,"pct":85.71},"branches":{"total":13,"covered":9,"skipped":0,"pct":69.23}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getRawTransactionNight.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getRawTransactionPortkey.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":6,"covered":6,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/getTxResultRetry.ts": {"lines":{"total":12,"covered":12,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":12,"covered":12,"skipped":0,"pct":100},"branches":{"total":7,"covered":5,"skipped":0,"pct":71.42}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/useCheckAllowanceAndApprove.ts": {"lines":{"total":17,"covered":17,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":17,"covered":17,"skipped":0,"pct":100},"branches":{"total":7,"covered":7,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/contract/useGetBalance.ts": {"lines":{"total":11,"covered":10,"skipped":0,"pct":90.9},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":11,"covered":10,"skipped":0,"pct":90.9},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/format/formatNumberWithDecimalPlaces.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":3,"covered":3,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/format/formatPrice.ts": {"lines":{"total":8,"covered":8,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":13,"covered":13,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/format/formatTime.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":7,"covered":7,"skipped":0,"pct":100},"branches":{"total":5,"covered":5,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isAElfBridge.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isELFAddress.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isMobileDevices.ts": {"lines":{"total":40,"covered":34,"skipped":0,"pct":85},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":41,"covered":35,"skipped":0,"pct":85.36},"branches":{"total":72,"covered":58,"skipped":0,"pct":80.55}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isPortkeyApp.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/is/isPrivateKey.ts": {"lines":{"total":5,"covered":5,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/utility/Loading.tsx": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":6,"covered":5,"skipped":0,"pct":83.33}} +,"/Users/liuxiyang/work/code/aelf-web-login/packages/utils/src/utility/sleep.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} +} diff --git a/packages/utils/coverage/lcov.info b/packages/utils/coverage/lcov.info new file mode 100644 index 00000000..92055401 --- /dev/null +++ b/packages/utils/coverage/lcov.info @@ -0,0 +1,640 @@ +TN: +SF:src/address/addPrefixSuffix.ts +FN:1,addPrefixSuffix +FNF:1 +FNH:1 +FNDA:5,addPrefixSuffix +DA:2,5 +DA:3,4 +DA:4,4 +DA:5,4 +DA:6,4 +DA:7,4 +DA:9,4 +DA:10,4 +DA:12,4 +LF:9 +LH:9 +BRDA:2,0,0,1 +BRDA:2,0,1,4 +BRDA:5,1,0,1 +BRDA:5,1,1,3 +BRDA:6,2,0,4 +BRDA:6,2,1,0 +BRDA:9,3,0,4 +BRDA:9,3,1,0 +BRF:8 +BRH:6 +end_of_record +TN: +SF:src/address/decodeAddress.ts +FN:2,(anonymous_0) +FNF:1 +FNH:1 +FNDA:6,(anonymous_0) +DA:2,1 +DA:3,6 +DA:4,6 +DA:5,5 +DA:6,4 +DA:7,2 +DA:8,2 +DA:10,1 +DA:11,1 +DA:13,2 +DA:15,2 +DA:17,1 +LF:12 +LH:12 +BRDA:4,0,0,1 +BRDA:4,0,1,5 +BRDA:5,1,0,1 +BRDA:5,1,1,4 +BRDA:6,2,0,2 +BRDA:6,2,1,2 +BRDA:8,3,0,1 +BRDA:8,3,1,1 +BRF:8 +BRH:8 +end_of_record +TN: +SF:src/address/getOriginalAddress.ts +FN:1,getOriginalAddress +FNF:1 +FNH:1 +FNDA:6,getOriginalAddress +DA:2,6 +DA:3,4 +DA:4,1 +DA:6,3 +LF:4 +LH:4 +BRDA:2,0,0,2 +BRDA:2,0,1,4 +BRDA:3,1,0,1 +BRDA:3,1,1,3 +BRF:4 +BRH:4 +end_of_record +TN: +SF:src/calculate/divDecimals.ts +FN:3,divDecimals +FNF:1 +FNH:1 +FNDA:8,divDecimals +DA:4,8 +DA:5,5 +DA:6,5 +DA:7,4 +DA:8,1 +DA:10,3 +LF:6 +LH:6 +BRDA:3,0,0,5 +BRDA:4,1,0,3 +BRDA:4,1,1,5 +BRDA:5,2,0,1 +BRDA:5,2,1,4 +BRDA:6,3,0,1 +BRDA:6,3,1,4 +BRDA:6,4,0,5 +BRDA:6,4,1,5 +BRDA:7,5,0,1 +BRDA:7,5,1,3 +BRDA:7,6,0,4 +BRDA:7,6,1,1 +BRF:13 +BRH:13 +end_of_record +TN: +SF:src/calculate/index.ts +FNF:0 +FNH:0 +LF:0 +LH:0 +BRF:0 +BRH:0 +end_of_record +TN: +SF:src/calculate/timesDecimals.ts +FN:3,timesDecimals +FNF:1 +FNH:1 +FNDA:11,timesDecimals +DA:4,11 +DA:5,8 +DA:6,8 +DA:7,6 +DA:8,1 +DA:10,5 +LF:6 +LH:6 +BRDA:3,0,0,5 +BRDA:4,1,0,3 +BRDA:4,1,1,8 +BRDA:5,2,0,1 +BRDA:5,2,1,7 +BRDA:6,3,0,2 +BRDA:6,3,1,6 +BRDA:6,4,0,8 +BRDA:6,4,1,8 +BRDA:7,5,0,1 +BRDA:7,5,1,5 +BRDA:7,6,0,6 +BRDA:7,6,1,1 +BRF:13 +BRH:13 +end_of_record +TN: +SF:src/contract/getRawTransaction.ts +FN:16,(anonymous_0) +FNF:1 +FNH:1 +FNDA:5,(anonymous_0) +DA:16,1 +DA:25,5 +DA:27,4 +DA:29,4 +DA:30,4 +DA:32,1 +DA:33,1 +DA:42,1 +DA:44,2 +DA:45,2 +DA:53,1 +DA:55,1 +DA:56,1 +DA:63,1 +DA:66,3 +DA:68,1 +DA:70,1 +LF:17 +LH:17 +BRDA:25,0,0,1 +BRDA:25,0,1,4 +BRDA:30,1,0,1 +BRDA:30,1,1,2 +BRDA:30,1,2,1 +BRDA:32,2,0,0 +BRDA:32,2,1,1 +BRDA:37,3,0,1 +BRDA:37,3,1,0 +BRDA:44,4,0,0 +BRDA:44,4,1,2 +BRDA:55,5,0,0 +BRDA:55,5,1,1 +BRF:13 +BRH:9 +end_of_record +TN: +SF:src/contract/getRawTransactionNight.ts +FN:11,getRawTransactionNight +FNF:1 +FNH:1 +FNDA:2,getRawTransactionNight +DA:18,2 +DA:23,1 +DA:24,1 +LF:3 +LH:3 +BRF:0 +BRH:0 +end_of_record +TN: +SF:src/contract/getRawTransactionPortkey.ts +FN:14,(anonymous_0) +FNF:1 +FNH:1 +FNDA:2,(anonymous_0) +DA:14,1 +DA:23,2 +DA:24,2 +DA:33,1 +DA:35,1 +DA:37,1 +LF:6 +LH:6 +BRF:0 +BRH:0 +end_of_record +TN: +SF:src/contract/getTxResultRetry.ts +FN:4,getAElf +FN:13,getTxResultRetry +FNF:2 +FNH:2 +FNDA:7,getAElf +FNDA:2,getTxResultRetry +DA:5,7 +DA:6,7 +DA:8,7 +DA:9,7 +DA:11,7 +DA:18,2 +DA:19,2 +DA:20,2 +DA:21,2 +DA:22,1 +DA:24,1 +DA:27,1 +LF:12 +LH:12 +BRDA:5,0,0,7 +BRDA:5,0,1,0 +BRDA:8,1,0,7 +BRDA:8,1,1,0 +BRDA:16,2,0,2 +BRDA:21,3,0,1 +BRDA:21,3,1,1 +BRF:7 +BRH:5 +end_of_record +TN: +SF:src/contract/useCheckAllowanceAndApprove.ts +FN:23,(anonymous_0) +FN:41,(anonymous_1) +FNF:2 +FNH:2 +FNDA:6,(anonymous_0) +FNDA:3,(anonymous_1) +DA:23,1 +DA:38,6 +DA:39,6 +DA:41,6 +DA:42,3 +DA:43,3 +DA:44,3 +DA:67,2 +DA:68,2 +DA:70,2 +DA:71,1 +DA:73,1 +DA:90,1 +DA:92,1 +DA:94,1 +DA:96,3 +DA:109,6 +LF:17 +LH:17 +BRDA:67,0,0,2 +BRDA:67,0,1,1 +BRDA:67,0,2,1 +BRDA:68,1,0,2 +BRDA:68,1,1,1 +BRDA:70,2,0,1 +BRDA:70,2,1,1 +BRF:7 +BRH:7 +end_of_record +TN: +SF:src/contract/useGetBalance.ts +FN:5,(anonymous_0) +FN:19,(anonymous_1) +FNF:2 +FNH:2 +FNDA:2,(anonymous_0) +FNDA:1,(anonymous_1) +DA:5,1 +DA:16,2 +DA:17,2 +DA:19,2 +DA:20,1 +DA:21,1 +DA:22,1 +DA:31,1 +DA:33,0 +DA:35,1 +DA:39,2 +LF:11 +LH:10 +BRF:0 +BRH:0 +end_of_record +TN: +SF:src/format/formatNumberWithDecimalPlaces.ts +FN:3,formatNumberWithDecimalPlaces +FNF:1 +FNH:1 +FNDA:8,formatNumberWithDecimalPlaces +DA:2,1 +DA:4,8 +DA:5,8 +DA:6,7 +LF:4 +LH:4 +BRDA:3,0,0,4 +BRDA:5,1,0,1 +BRDA:5,1,1,7 +BRF:3 +BRH:3 +end_of_record +TN: +SF:src/format/formatPrice.ts +FN:3,formatPrice +FNF:1 +FNH:1 +FNDA:8,formatPrice +DA:15,8 +DA:16,8 +DA:17,8 +DA:19,7 +DA:20,1 +DA:23,6 +DA:24,6 +DA:25,6 +LF:8 +LH:8 +BRDA:12,0,0,4 +BRDA:13,1,0,6 +BRDA:14,2,0,6 +BRDA:15,3,0,8 +BRDA:15,3,1,3 +BRDA:16,4,0,1 +BRDA:16,4,1,7 +BRDA:17,5,0,1 +BRDA:17,5,1,7 +BRDA:19,6,0,1 +BRDA:19,6,1,6 +BRDA:19,7,0,7 +BRDA:19,7,1,7 +BRF:13 +BRH:13 +end_of_record +TN: +SF:src/format/formatTime.ts +FN:21,formatTime +FN:29,createDuration +FNF:2 +FNH:2 +FNDA:3,formatTime +FNDA:3,createDuration +DA:3,1 +DA:22,3 +DA:33,3 +DA:34,1 +DA:35,2 +DA:36,1 +DA:38,1 +LF:7 +LH:7 +BRDA:21,0,0,2 +BRDA:33,1,0,1 +BRDA:33,1,1,2 +BRDA:35,2,0,1 +BRDA:35,2,1,1 +BRF:5 +BRH:5 +end_of_record +TN: +SF:src/is/isAElfBridge.ts +FN:4,isAElfBridge +FNF:1 +FNH:1 +FNDA:2,isAElfBridge +DA:5,2 +LF:1 +LH:1 +BRDA:5,0,0,2 +BRDA:5,0,1,1 +BRF:2 +BRH:2 +end_of_record +TN: +SF:src/is/isELFAddress.ts +FN:3,isELFAddress +FNF:1 +FNH:1 +FNDA:3,isELFAddress +DA:4,3 +DA:5,2 +DA:6,2 +DA:8,1 +LF:4 +LH:4 +BRDA:4,0,0,1 +BRDA:4,0,1,2 +BRF:2 +BRH:2 +end_of_record +TN: +SF:src/is/isMobileDevices.ts +FN:24,(anonymous_0) +FN:33,createMatch +FN:34,(anonymous_2) +FN:75,isMobile +FN:188,isMobileDevices +FNF:5 +FNH:5 +FNDA:2,(anonymous_0) +FNDA:2,createMatch +FNDA:84,(anonymous_2) +FNDA:2,isMobile +FNDA:2,isMobileDevices +DA:1,1 +DA:2,1 +DA:3,1 +DA:4,1 +DA:5,1 +DA:6,1 +DA:7,1 +DA:8,1 +DA:9,1 +DA:10,1 +DA:11,1 +DA:12,1 +DA:13,1 +DA:14,1 +DA:15,1 +DA:24,1 +DA:25,2 +DA:34,84 +DA:76,2 +DA:82,2 +DA:83,2 +DA:88,0 +DA:89,0 +DA:90,0 +DA:91,0 +DA:98,2 +DA:102,2 +DA:103,2 +DA:104,0 +DA:110,2 +DA:111,2 +DA:112,0 +DA:115,2 +DA:117,2 +DA:179,2 +DA:182,2 +DA:183,2 +DA:185,2 +DA:189,2 +DA:190,2 +LF:40 +LH:34 +BRDA:26,0,0,2 +BRDA:26,0,1,2 +BRDA:26,0,2,0 +BRDA:26,0,3,0 +BRDA:82,1,0,2 +BRDA:82,1,1,0 +BRDA:82,2,0,2 +BRDA:82,2,1,2 +BRDA:86,3,0,2 +BRDA:86,3,1,2 +BRDA:88,4,0,0 +BRDA:88,4,1,0 +BRDA:90,5,0,0 +BRDA:90,5,1,0 +BRDA:90,6,0,0 +BRDA:90,6,1,0 +BRDA:94,7,0,0 +BRDA:94,7,1,0 +BRDA:103,8,0,0 +BRDA:103,8,1,2 +BRDA:111,9,0,0 +BRDA:111,9,1,2 +BRDA:119,10,0,2 +BRDA:119,10,1,1 +BRDA:122,11,0,2 +BRDA:122,11,1,1 +BRDA:122,11,2,1 +BRDA:122,11,3,0 +BRDA:127,12,0,2 +BRDA:127,12,1,1 +BRDA:127,12,2,1 +BRDA:127,12,3,1 +BRDA:127,12,4,1 +BRDA:127,12,5,1 +BRDA:136,13,0,2 +BRDA:136,13,1,2 +BRDA:137,14,0,2 +BRDA:137,14,1,2 +BRDA:141,15,0,2 +BRDA:141,15,1,2 +BRDA:141,15,2,2 +BRDA:141,15,3,2 +BRDA:144,16,0,2 +BRDA:144,16,1,2 +BRDA:144,16,2,2 +BRDA:144,16,3,2 +BRDA:144,16,4,2 +BRDA:149,17,0,2 +BRDA:149,17,1,2 +BRDA:149,17,2,2 +BRDA:149,17,3,2 +BRDA:149,17,4,2 +BRDA:149,17,5,2 +BRDA:159,18,0,2 +BRDA:159,18,1,2 +BRDA:168,19,0,2 +BRDA:168,19,1,2 +BRDA:168,19,2,2 +BRDA:168,19,3,2 +BRDA:168,19,4,2 +BRDA:180,20,0,2 +BRDA:180,20,1,1 +BRDA:180,20,2,1 +BRDA:180,20,3,1 +BRDA:182,21,0,2 +BRDA:182,21,1,1 +BRDA:182,21,2,1 +BRDA:183,22,0,2 +BRDA:183,22,1,2 +BRDA:183,22,2,2 +BRDA:190,23,0,2 +BRDA:190,23,1,1 +BRF:72 +BRH:58 +end_of_record +TN: +SF:src/is/isPortkeyApp.ts +FN:1,isPortkeyApp +FNF:1 +FNH:1 +FNDA:2,isPortkeyApp +DA:2,2 +DA:3,1 +DA:5,1 +LF:3 +LH:3 +BRDA:2,0,0,1 +BRDA:2,0,1,1 +BRF:2 +BRH:2 +end_of_record +TN: +SF:src/is/isPrivateKey.ts +FN:1,isPrivateKey +FNF:1 +FNH:1 +FNDA:3,isPrivateKey +DA:2,3 +DA:3,3 +DA:4,2 +DA:7,1 +DA:9,1 +LF:5 +LH:5 +BRDA:3,0,0,2 +BRDA:3,0,1,1 +BRDA:3,1,0,3 +BRDA:3,1,1,2 +BRF:4 +BRH:4 +end_of_record +TN: +SF:src/utility/Loading.tsx +FN:8,(anonymous_0) +FN:12,(anonymous_1) +FN:20,(anonymous_2) +FN:26,(anonymous_3) +FN:30,(anonymous_4) +FNF:5 +FNH:5 +FNDA:4,(anonymous_0) +FNDA:4,(anonymous_1) +FNDA:4,(anonymous_2) +FNDA:3,(anonymous_3) +FNDA:1,(anonymous_4) +DA:4,4 +DA:5,4 +DA:9,4 +DA:13,4 +DA:14,3 +DA:15,3 +DA:16,3 +DA:21,4 +DA:23,4 +DA:27,3 +DA:31,1 +DA:32,1 +DA:33,1 +DA:34,1 +DA:35,1 +DA:36,1 +LF:16 +LH:16 +BRDA:13,0,0,3 +BRDA:13,0,1,1 +BRDA:23,1,0,3 +BRDA:23,1,1,1 +BRDA:32,2,0,1 +BRDA:32,2,1,0 +BRF:6 +BRH:5 +end_of_record +TN: +SF:src/utility/sleep.ts +FN:1,sleep +FN:2,(anonymous_1) +FNF:2 +FNH:2 +FNDA:1,sleep +FNDA:1,(anonymous_1) +DA:2,1 +LF:1 +LH:1 +BRF:0 +BRH:0 +end_of_record