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

test: include PacketData serde test to keep proper JSON encoding #765

Merged
merged 4 commits into from
Jul 18, 2023

Conversation

Farhad-Shabani
Copy link
Member

Closes: #763


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests.
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@Farhad-Shabani Farhad-Shabani marked this pull request as ready for review July 14, 2023 18:51
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.08 🎉

Comparison is base (9cba2fc) 71.13% compared to head (dad433a) 71.22%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #765      +/-   ##
==========================================
+ Coverage   71.13%   71.22%   +0.08%     
==========================================
  Files         124      124              
  Lines       14779    14790      +11     
==========================================
+ Hits        10513    10534      +21     
+ Misses       4266     4256      -10     
Impacted Files Coverage Δ
crates/ibc/src/core/handler.rs 90.14% <ø> (ø)
...tes/ibc/src/applications/transfer/msgs/transfer.rs 35.80% <100.00%> (-13.72%) ⬇️
crates/ibc/src/applications/transfer/packet.rs 98.18% <100.00%> (+48.18%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Farhad-Shabani Farhad-Shabani requested review from rnbguy and plafer July 14, 2023 18:58
Copy link
Collaborator

@rnbguy rnbguy left a comment

Choose a reason for hiding this comment

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

Suggested an extra test.

crates/ibc/src/applications/transfer/packet.rs Outdated Show resolved Hide resolved
Farhad-Shabani and others added 2 commits July 17, 2023 05:58
Co-authored-by: Rano | Ranadeep <ranadip.bswas@gmail.com>
Signed-off-by: Farhad Shabani <Farhad.Shabani@gmail.com>
Copy link
Collaborator

@rnbguy rnbguy left a comment

Choose a reason for hiding this comment

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

Everything looks good now. Thanks, Farhad !

@Farhad-Shabani Farhad-Shabani merged commit 1be6699 into main Jul 18, 2023
@Farhad-Shabani Farhad-Shabani deleted the farhad/packet-data-json-encoding-test branch July 18, 2023 00:50
Farhad-Shabani added a commit that referenced this pull request Sep 9, 2024
)

* test: include PacketData test to keep proper JSON encoding

* misc: add unclog

* Update crates/ibc/src/applications/transfer/packet.rs

Co-authored-by: Rano | Ranadeep <ranadip.bswas@gmail.com>
Signed-off-by: Farhad Shabani <Farhad.Shabani@gmail.com>

* imp: add dummy_json_packet_data function

---------

Signed-off-by: Farhad Shabani <Farhad.Shabani@gmail.com>
Co-authored-by: Rano | Ranadeep <ranadip.bswas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[ICS07] Add test to ensure PacketData keeps proper JSON encoding
2 participants