LimeChain / hashport-validator

Official repository containing the source code of the Hashport validators
Apache License 2.0
23 stars 11 forks source link

Research and estimate test coverage change #781

Closed bibitibooo1 closed 1 year ago

bibitibooo1 commented 1 year ago

Total to include both tested and not tested files so that the metric is more accurate.

trayanm commented 1 year ago

Report from branch dev_773_e2e_refactor_fixing ordered by Coverage % asc: 4045 of 6465 lines covered

Files Tracked lines Covered Partial Missed Coverage %
app/helper/http/retry-logger.go 16 0 0 16 0.00%
app/helper/http/error-response.go 11 0 0 11 0.00%
app/services/contracts/service.go 71 0 0 71 0.00%
app/clients/hedera/client.go 215 9 1 205 4.19%
app/services/lock-event/service.go 179 25 2 152 13.97%
app/process/handler/read-only/fee-transfer/handler.go 152 26 1 125 17.11%
app/persistence/db_conn.go 27 7 0 20 25.93%
app/router/transfer/transfer.go 53 17 1 35 32.08%
app/services/fee/distributor/distributor.go 90 29 0 61 32.22%
app/process/watcher/evm/watcher.go 505 178 11 316 35.25%
app/process/handler/read-only/mint-hts/handler.go 74 30 3 41 40.54%
config/config.go 33 14 3 16 42.42%
app/process/handler/read-only/fee/handler.go 119 51 6 62 42.86%
app/model/auth-message/auth-message.go 147 66 8 73 44.90%
app/process/watcher/transfer/watcher.go 282 129 17 136 45.74%
app/persistence/db.go 23 11 0 12 47.83%
app/clients/evm/client.go 173 83 0 90 47.98%
app/clients/hedera/mirror-node/client.go 400 199 6 195 49.75%
app/core/server/server.go 20 10 0 10 50.00%
app/helper/big-numbers/helper.go 12 7 0 5 58.33%
app/process/handler/read-only/burn/handler.go 44 26 2 16 59.09%
app/process/handler/message/handler.go 136 84 3 49 61.76%
app/model/fee-policy/flat_fee_per_token_policy.go 37 24 4 9 64.86%
app/process/watcher/message/watcher.go 79 52 6 21 65.82%
config/loggcp.go 56 38 4 14 67.86%
app/services/signer/evm/signer.go 19 13 2 4 68.42%
app/services/burn-event/service.go 270 187 12 71 69.26%
app/services/fee/calculator/calculator.go 36 25 3 8 69.44%
app/helper/http/encode.go 10 7 1 2 70.00%
app/services/assets/assets.go 421 296 28 97 70.31%
app/model/message/message.go 51 36 1 14 70.59%
app/services/pricing/service.go 353 250 17 86 70.82%
config/node.go 106 76 10 20 71.70%
app/services/prometheus/service.go 125 93 10 22 74.40%
app/model/fee-policy/flat_fee_policy.go 17 13 1 3 76.47%
app/model/fee-policy/percentage_fee_policy.go 18 14 1 3 77.78%
app/model/fee-policy/helpers.go 19 15 1 3 78.95%
app/process/handler/read-only/nft/fee/handler.go 110 87 2 21 79.09%
app/helper/evm/helper.go 45 36 1 8 80.00%
app/router/utils/utils.go 20 16 1 3 80.00%
app/helper/mirror-node/api.go 34 28 2 4 82.35%
app/process/handler/fee-message/handler.go 25 21 1 3 84.00%
app/services/fee-policy/service.go 208 175 6 27 84.13%
config/logger.go 26 22 0 4 84.62%
app/persistence/transfer/transfer.go 172 150 8 14 87.21%
app/helper/timestamp/helper.go 24 21 1 2 87.50%
app/process/watcher/bridge-config/watcher.go 26 23 1 2 88.46%
app/services/bridge-config/service.go 158 140 5 13 88.61%
config/bridge.go 115 102 0 13 88.70%
app/services/utils/service.go 40 36 1 3 90.00%
app/helper/hedera/transaction-id.go 31 28 0 3 90.32%
app/helper/hedera/scheduled_transaction.go 62 57 1 4 91.94%
app/process/recovery/recovery.go 58 55 0 3 94.83%
app/process/handler/message-submission/handler.go 58 55 1 2 94.83%
app/persistence/fee/fee.go 43 42 0 1 97.67%
app/router/router.go 10 10 0 0 100.00%
app/helper/fee/fee.go 27 27 0 0 100.00%
app/helper/http/get.go 17 17 0 0 100.00%
app/core/queue/queue.go 7 7 0 0 100.00%
app/helper/hedera/nft.go 79 79 0 0 100.00%
app/helper/memo/helper.go 10 10 0 0 100.00%
app/helper/hedera/token.go 6 6 0 0 100.00%
app/router/assets/assets.go 63 63 0 0 100.00%
app/helper/decimal/helper.go 30 30 0 0 100.00%
app/helper/message/helper.go 14 14 0 0 100.00%
app/process/payload/transfer.go 28 28 0 0 100.00%
app/router/response/response.go 5 5 0 0 100.00%
app/clients/coin-gecko/client.go 30 30 0 0 100.00%
app/persistence/status/status.go 34 34 0 0 100.00%
app/services/contracts/members.go 8 8 0 0 100.00%
app/persistence/message/message.go 36 36 0 0 100.00%
app/router/burn-event/burn-event.go 15 15 0 0 100.00%
app/persistence/schedule/schedule.go 55 55 0 0 100.00%
app/process/watcher/price/watcher.go 20 20 0 0 100.00%
app/clients/coin-market-cap/client.go 31 31 0 0 100.00%
app/router/healthcheck/healthcheck.go 10 10 0 0 100.00%
app/router/min-amounts/min-amounts.go 16 16 0 0 100.00%
app/process/handler/mint-hts/handler.go 12 12 0 0 100.00%
app/router/config-bridge/config-bridge.go 8 8 0 0 100.00%
app/process/handler/burn-message/handler.go 25 25 0 0 100.00%
app/process/handler/fee-transfer/handler.go 12 12 0 0 100.00%
app/process/handler/nft/transfer/handler.go 50 50 0 0 100.00%
app/process/handler/nft/fee-message/handler.go 25 25 0 0 100.00%
app/process/watcher/fee-policy-config/watcher.go 22 22 0 0 100.00%
app/process/handler/read-only/transfer/handler.go 20 20 0 0 100.00%
app/clients/hedera/mirror-node/model/error/error.go 13 13 0 0 100.00%
app/clients/hedera/mirror-node/model/transaction/transaction.go 73 73 0 0 100.00%