cosmos-sdk/x/ibc/testing/mock
dauTT d61fa43108
x/ibc: mock own privValidator rather than relying on the one from tendermint (#7241)
* 1) Create PrivValidator mock in x/ibc/testing/mock/privval.go
2) Adjust tests accordingly

* Add tests

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-09-07 21:44:23 +00:00
..
doc.go Add a mock application module to test core IBC (#7187) 2020-08-31 13:58:23 +00:00
mock.go rename RegisterCodec to RegisterLegacyAminoCodec (#7243) 2020-09-07 14:47:12 +00:00
privval_test.go x/ibc: mock own privValidator rather than relying on the one from tendermint (#7241) 2020-09-07 21:44:23 +00:00
privval.go x/ibc: mock own privValidator rather than relying on the one from tendermint (#7241) 2020-09-07 21:44:23 +00:00
README.md Add a mock application module to test core IBC (#7187) 2020-08-31 13:58:23 +00:00

This package is only intended to be used for testing core IBC. In order to maintain secure testing, we need to do message passing and execution which requires connecting an IBC application module that fulfills all the callbacks. We cannot connect to ibc-transfer which does not support all channel types so instead we create a mock application module which does nothing. It simply return nil in all cases so no error ever occurs. It is intended to be as minimal and lightweight as possible and should never import simapp.