Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Create a thorough unit test for KeyComparator #10753

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

jsync-swirlds
Copy link
Member

@jsync-swirlds jsync-swirlds commented Jan 3, 2024

  • Added KeyComparatorTest
    • Added data-driven testing to exercise all probable input combinations.
  • Adjusted KeyComparator to correctly order keys where testing showed errors.
  • Adjusted one other unit test that depends on key ordering to match correct order.

@jsync-swirlds jsync-swirlds self-assigned this Jan 3, 2024
Copy link

github-actions bot commented Jan 3, 2024

Node: HAPI Test (Token) Results

189 tests   189 ✔️  16m 30s ⏱️
  13 suites      0 💤
  13 files        0

Results for commit bd9e080.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 3, 2024

Node: HAPI Test (Crypto) Results

211 tests   209 ✔️  19m 44s ⏱️
  22 suites      2 💤
  22 files        0

Results for commit bd9e080.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 3, 2024

Node: Unit Test Results

    2 294 files  +    1      2 294 suites  +1   1h 0m 39s ⏱️ + 6m 26s
118 840 tests +197  118 805 ✔️ +197  35 💤 ±0  0 ±0 
127 258 runs  +198  127 223 ✔️ +198  35 💤 ±0  0 ±0 

Results for commit bd9e080. ± Comparison against base commit 8aeb2d6.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Jan 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9a8ddf7) 62.80% compared to head (bd9e080) 62.85%.
Report is 7 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #10753      +/-   ##
=============================================
+ Coverage      62.80%   62.85%   +0.05%     
- Complexity     30970    31005      +35     
=============================================
  Files           3384     3384              
  Lines         136851   136851              
  Branches       14267    14264       -3     
=============================================
+ Hits           85949    86020      +71     
+ Misses         47488    47392      -96     
- Partials        3414     3439      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Jan 3, 2024

Node: E2E Test Results

    1 files      1 suites   22m 10s ⏱️
311 tests 311 ✔️ 0 💤 0
333 runs  333 ✔️ 0 💤 0

Results for commit bd9e080.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 3, 2024

Node: HAPI Test (Misc) Results

422 tests   404 ✔️  32m 40s ⏱️
  73 suites    18 💤
  73 files        0

Results for commit bd9e080.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 3, 2024

Node: HAPI Test (Time Consuming) Results

22 tests   17 ✔️  44m 32s ⏱️
  2 suites    5 💤
  2 files      0

Results for commit bd9e080.

♻️ This comment has been updated with latest results.

@jsync-swirlds jsync-swirlds force-pushed the task-create-key-comparator-test branch from 919a0b4 to 8e3f18f Compare January 3, 2024 21:01
 * Added KeyComparatorTest
    * Added data-driven testing to exercise all probable input combinations.
 * Adjusted KeyComparator to correctly order keys where testing showed errors.
 * Adjusted one other unit test that depends on key ordering to match correct order.

Signed-off-by: Joseph Sinclair <joseph.sinclair@swirldslabs.com>
@jsync-swirlds jsync-swirlds force-pushed the task-create-key-comparator-test branch from 8e3f18f to bd9e080 Compare January 3, 2024 21:01
Copy link

github-actions bot commented Jan 3, 2024

Node: HAPI Test (Smart Contract) Results

411 tests   411 ✔️  51m 25s ⏱️
  55 suites      0 💤
  55 files        0

Results for commit bd9e080.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 3, 2024

Node: Integration Test Results

294 tests   294 ✔️  1h 3m 55s ⏱️
    5 suites      0 💤
    5 files        0

Results for commit bd9e080.

@jsync-swirlds jsync-swirlds marked this pull request as ready for review January 3, 2024 22:26
@jsync-swirlds jsync-swirlds requested a review from a team January 3, 2024 22:26
@jsync-swirlds jsync-swirlds requested a review from a team as a code owner January 3, 2024 22:26
Copy link
Member

@mhess-swl mhess-swl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test looks great! 👍

Copy link
Contributor

@iwsimon iwsimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Test!

Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tyvm @jsync-swirlds !

@jsync-swirlds jsync-swirlds merged commit 3c07893 into develop Jan 4, 2024
45 checks passed
@jsync-swirlds jsync-swirlds deleted the task-create-key-comparator-test branch January 4, 2024 20:29
povolev15 pushed a commit that referenced this pull request Jan 5, 2024
Signed-off-by: Joseph Sinclair <joseph.sinclair@swirldslabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants