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(monitoringp): increase code coverage #736

Merged
merged 3 commits into from
Apr 22, 2022
Merged

Conversation

aljo242
Copy link
Contributor

@aljo242 aljo242 commented Apr 20, 2022

Part of #687

What does this PR does?

Increase code coverage for x/monitoringp

@aljo242 aljo242 changed the title test(monitoringp) increase code coverage test(monitoringp): increase code coverage Apr 20, 2022
@codecov
Copy link

codecov bot commented Apr 20, 2022

Codecov Report

Merging #736 (ddf3c6f) into develop (8a4a18e) will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #736      +/-   ##
===========================================
+ Coverage    11.35%   11.43%   +0.08%     
===========================================
  Files          278      278              
  Lines        60780    60780              
===========================================
+ Hits          6899     6950      +51     
+ Misses       53715    53666      -49     
+ Partials       166      164       -2     
Impacted Files Coverage Δ
x/campaign/simulation/store.go 81.08% <0.00%> (-3.38%) ⬇️
x/monitoringp/keeper/monitoring_packet.go 8.19% <0.00%> (+8.19%) ⬆️
x/monitoringp/keeper/handshake.go 100.00% <0.00%> (+12.12%) ⬆️
x/monitoringp/keeper/grpc_monitoring_info.go 100.00% <0.00%> (+27.27%) ⬆️
x/monitoringp/keeper/grpc_consumer_client_id.go 100.00% <0.00%> (+27.27%) ⬆️
x/monitoringp/keeper/grpc_connection_channel_id.go 100.00% <0.00%> (+27.27%) ⬆️
x/monitoringp/keeper/begin_block.go 95.38% <0.00%> (+52.30%) ⬆️

Copy link
Contributor

@lumtis lumtis left a comment

Choose a reason for hiding this comment

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

👍
I think we can create another issue to address monitoring_packet.go and TransmitSignatures where the packet is actually transmitted and that will require mocking TransmitMonitoringPacket method so we can close #687 after this current issue and coverage for monitoringc

x/monitoringp/keeper/begin_block_test.go Show resolved Hide resolved
@lumtis lumtis merged commit 9bab52f into develop Apr 22, 2022
@lumtis lumtis deleted the test/monitoringp-coverage branch April 22, 2022 11:28
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