cosmos-sdk/testutil
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
..
cli refactor: x/bank integration and e2e tests (#12779) 2022-08-02 10:10:31 -05:00
configurator refactor: remove simapp references from x/bank and x/slashing tests (#12897) 2022-08-11 16:23:45 +00:00
mock chore: downgrade to tendermint v0.34.x (#12958) 2022-08-20 02:33:07 +02:00
network feat(gentx): allow custom tx validation (#12956) 2022-08-23 15:36:30 +00:00
rest chore: fix linting issues exposed by fixing golangci-lint (#12895) 2022-08-11 22:00:24 +02:00
sims test(gov): Refactor x/gov keeper tests to use mocks (#12988) 2022-08-25 20:15:44 +00:00
testdata fix(codec): MarshalInterface should err when UnmarshalInterface will fail (#12964) 2022-08-19 18:42:55 +00:00
testdata_pulsar fix(codec): MarshalInterface should err when UnmarshalInterface will fail (#12964) 2022-08-19 18:42:55 +00:00
account.go refactor(crisis): CLI tests using Tendermint mock (#12874) 2022-08-10 13:54:31 +00:00
context.go refactor: Use mocks for x/nft testing (#12407) 2022-07-05 14:38:27 +00:00
ioutil_test.go ci: improve error checking (errcheck linter) (#11195) 2022-04-13 06:46:51 +00:00
ioutil.go refactor!: abstractions for snapshot and pruning; snapshot intervals eventually pruned; unit tests (#11496) 2022-04-21 15:30:36 -04:00
key_test.go refactor(testutil): remove dependency on simapp (#12624) 2022-07-20 07:34:58 +00:00
key.go chore: move server.GenerateCoinKey and server.GenerateSaveCoinKey to … (#10957) 2022-01-18 15:24:16 +00:00
list.go refactor: remove weird casting for staking.Keeper in slashing and distribution (#12973) 2022-08-20 21:11:44 +00:00
rest.go refactor: move from io/ioutil to io and os package (#10341) 2021-10-13 07:38:22 +00:00