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: adding msg_server test for 29-fee #391

Closed
wants to merge 5 commits into from

Conversation

seantking
Copy link
Contributor

@seantking seantking commented Sep 10, 2021

Description

Adding tests for msg_server.

In order to write the msg_server tests I needed to merge the latest changes from ics29-fee-middleware feature branch into the handshake PR @AdityaSripal is working on as I needed some of the changes on @AdityaSripal branch (module.go wiring etc).

This branch is merging into aditya/handshake not ics29-fee-middleware. Note that most of the changes are from the latest code on the feature branch.

closes: #258


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

seantking and others added 4 commits September 8, 2021 13:29
* feat: adding MsgServer for RegisterCounterPartyAddress &
EscrowPacketFree

* test: adding test for ValidateBasic

* fix: removing validate basic check

* fix: removing empty file

* Update modules/apps/29-fee/keeper/msg_server.go

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>

* Update modules/apps/29-fee/types/msgs.go

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>

* Update modules/apps/29-fee/types/keys.go

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>

* Update modules/apps/29-fee/keeper/keeper.go

Co-authored-by: Aditya <adityasripal@gmail.com>

* fix: fixing typos, variable names, comments

* fix: updating import comments

* test: adding test for KeyRelayerAddress

* update: comments & key_test

* Update modules/apps/29-fee/keeper/msg_server.go

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>

* fix: error message

* docs: updating RegisterCounterpartyAddress fn description

Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Aditya <adityasripal@gmail.com>
@seantking seantking changed the title Feat/sean 258 msg server test test: adding msg_server test for 29-fee Sep 10, 2021
@seantking seantking marked this pull request as ready for review September 13, 2021 12:15
@codecov-commenter
Copy link

Codecov Report

Merging #391 (3c5e568) into aditya/handshake (1f62964) will increase coverage by 0.00%.
The diff coverage is 62.68%.

Impacted file tree graph

@@                Coverage Diff                @@
##           aditya/handshake     #391   +/-   ##
=================================================
  Coverage             78.33%   78.33%           
=================================================
  Files                   121      124    +3     
  Lines                  9781     9851   +70     
=================================================
+ Hits                   7662     7717   +55     
- Misses                 1734     1747   +13     
- Partials                385      387    +2     
Impacted Files Coverage Δ
modules/apps/29-fee/types/msgs.go 48.38% <50.00%> (ø)
modules/apps/29-fee/keeper/keeper.go 58.33% <61.53%> (+58.33%) ⬆️
modules/apps/29-fee/keeper/msg_server.go 68.75% <68.75%> (ø)
modules/apps/29-fee/types/codec.go 60.00% <75.00%> (ø)
modules/apps/29-fee/module.go 53.67% <100.00%> (ø)
modules/apps/29-fee/types/keys.go 50.00% <100.00%> (+50.00%) ⬆️

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

ACK - I only reviewed msg_server_test.go

@seantking seantking closed this Sep 22, 2021
faddat pushed a commit to notional-labs/ibc-go that referenced this pull request Mar 1, 2022
* fix client match bug

* add sanity check

* fix build

* apply @AdityaSripal suggestion

* add comment for sanity check

* fix wording
@seantking seantking deleted the feat/sean-258-msg-server-test branch August 3, 2022 14:00
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.

3 participants