semiotic-ai / timeline-aggregation-protocol

A fast, efficient and trust-minimized unidirectional micro-payments system.
Apache License 2.0
14 stars 3 forks source link

ci: Added Test Coverage #61

Closed pablogmorales closed 1 year ago

pablogmorales commented 1 year ago

Added Code Coverage llvm-cov

aasseman commented 1 year ago

Looks good. Can we make it so that it exports to an lcov file (seems supported by llvm-cov), and then use https://github.com/romeovs/lcov-reporter-action to print it in the PRs?

pablogmorales commented 1 year ago

Yes, let me test it and update the PR. thanks

On Tue, Apr 25, 2023 at 11:10 PM Alexis Asseman @.***> wrote:

Looks good. Can we make it so that it exports to an lcov file (seems supported by llvm-cov), and then use https://github.com/romeovs/lcov-reporter-action to print it in the PRs?

— Reply to this email directly, view it on GitHub https://github.com/semiotic-ai/timeline_aggregation_protocol/pull/61#issuecomment-1522661285, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE6JDFOQQQAC3NR5MMOXMZDXDB72HANCNFSM6AAAAAAXLXAW3U . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 1 year ago

Coverage after merging code-coverage into main will be

91.13%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
tap_core/src
   eip_712_signed_message.rs64.10%100%44.44%70%41, 52
   lib.rs96.49%100%86.67%97.98%
   receipt_aggregate_voucher.rs81.58%100%57.14%87.10%21
tap_core/src/adapters/test
   allocation_adapter_mock.rs50%100%50%50%14–16, 18–20
   allocation_adapter_test.rs100%100%100%100%
   collateral_adapter_mock.rs82.98%100%71.43%85%25–26, 44, 50–52
   collateral_adapter_test.rs100%100%100%100%
   rav_storage_adapter_mock.rs94.74%100%83.33%96.88%7
   rav_storage_adapter_test.rs100%100%100%100%
   receipt_adapter_mock.rs97.65%100%93.33%98.57%5
   receipt_adapter_test.rs100%100%100%100%
tap_core/src/tap_receipt
   mod.rs75%100%57.14%82.35%
   receipt.rs67.65%100%55.56%72%20, 44
   received_receipt.rs82.42%100%75.86%83.82%100–102, 109–111, 113–115, 160, 171, 185–187, 95–97