vechain / thor

A general purpose blockchain highly compatible with Ethereum's ecosystem
GNU Lesser General Public License v3.0
796 stars 247 forks source link

Adds test for DeriveRoot function in trie #691

Closed ahasikos closed 5 months ago

ahasikos commented 6 months ago

Description

Adds a test for DeriveRoot function of the trie package

Type of change

Adds a test for DeriveRoot using a self generated KAT(Known Answer Test). Given that our implementation differs only in the hash function from Ethereum we assume its correctness.

How Has This Been Tested?

make test

Test Configuration:

Checklist:

codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 57.32%. Comparing base (c9c4a51) to head (0cc1bef).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #691 +/- ## ========================================== + Coverage 57.27% 57.32% +0.05% ========================================== Files 156 156 Lines 17218 17218 ========================================== + Hits 9862 9871 +9 + Misses 6392 6383 -9 Partials 964 964 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.