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: increase x/oracle unit test coverage (backport #798) #801

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 12, 2022

This is an automatic backport of pull request #798 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

## Description

- Add unit test to
  -  `x/oracle/keeper/msg_server_test.go`
  - `x/oracle/keeper/params_test.go`
  - `x/oracle/keeper/reward_test.go`
  - `x/oracle/types/ballot_test.go`
  - `x/oracle/types/codec_test.go`
  - `x/oracle/types/genesis_test.go`
  - `x/oracle/types/msgs_test.go`

helps: #661

----

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added appropriate labels to the PR
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/umee-network/umee/blob/main/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)

(cherry picked from commit 060fbfe)
@mergify mergify bot requested review from a team as code owners April 12, 2022 16:35
@codecov-commenter
Copy link

Codecov Report

Merging #801 (75cb27a) into release/v2.x.x (629a25d) will increase coverage by 1.17%.
The diff coverage is 80.95%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           release/v2.x.x     #801      +/-   ##
==================================================
+ Coverage           49.76%   50.93%   +1.17%     
==================================================
  Files                  64       64              
  Lines                9407     9428      +21     
==================================================
+ Hits                 4681     4802     +121     
+ Misses               4478     4383      -95     
+ Partials              248      243       -5     
Impacted Files Coverage Δ
x/oracle/types/test_utils.go 49.55% <80.95%> (+7.16%) ⬆️
x/oracle/types/vote.go 95.00% <0.00%> (-5.00%) ⬇️
x/oracle/keeper/reward.go 86.04% <0.00%> (+6.97%) ⬆️
x/oracle/keeper/params.go 90.32% <0.00%> (+9.67%) ⬆️
x/oracle/types/msgs.go 96.90% <0.00%> (+36.08%) ⬆️
x/oracle/types/ballot.go 97.11% <0.00%> (+40.38%) ⬆️
x/oracle/types/codec.go 100.00% <0.00%> (+50.00%) ⬆️
x/oracle/types/genesis.go 100.00% <0.00%> (+59.25%) ⬆️

@adamewozniak adamewozniak merged commit 3cdefe8 into release/v2.x.x Apr 12, 2022
@adamewozniak adamewozniak deleted the mergify/bp/release/v2.x.x/pr-798 branch April 12, 2022 17:06
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