cosmos-sdk/x/gov/keeper
Amaury fc7ee0bf1e
test(gov): Refactor x/gov keeper tests to use mocks (#12988)
## Description

ref: #12752 

- [x] Move some keeper tests into `tests/integration/gov/keeper`, see https://github.com/cosmos/cosmos-sdk/pull/12988#discussion_r954956199
- [x] Don't use simapp in `x/gov/keeper` tests, use mocks instead
- [x] Find 0 "simapp" occurence in x/gov/keeper. (Note: other occurrences of simapp are removed in  #13043)



---

### 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 `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
- [ ] 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)
2022-08-25 20:15:44 +00:00
..
common_test.go test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
deposit_test.go test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
deposit.go feat!: initial deposit requirement for proposals (#12771) 2022-08-02 20:40:00 +02:00
export_test.go feat!: initial deposit requirement for proposals (#12771) 2022-08-02 20:40:00 +02:00
grpc_query_test.go test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
grpc_query.go chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
hooks_test.go test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
hooks.go Add hooks to governance actions (#9133) 2021-04-21 12:59:30 -04:00
internal_test.go x/gov v0.43 Audit updates (#9258) 2021-05-07 12:00:19 +00:00
invariants.go feat: migrate x/gov use app wiring (#12369) 2022-07-04 14:58:48 +02:00
keeper_test.go test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
keeper.go chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
migrations.go feat: deprecate x/params usage in x/gov (#12631) 2022-08-01 16:53:04 +00:00
msg_server_test.go test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
msg_server.go chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
params.go feat: deprecate x/params usage in x/gov (#12631) 2022-08-01 16:53:04 +00:00
proposal_test.go test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
proposal.go feat: deprecate x/params usage in x/gov (#12631) 2022-08-01 16:53:04 +00:00
tally.go chore: math lib update and type fixes (#12791) 2022-08-02 11:16:40 +00:00
vote_test.go test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
vote.go chore(types): add MustAccAddressFromBech32 util func (#12201) 2022-06-09 12:26:07 -04:00