Browse Source

mocks: update with 2.2.1 (#5294)

## Description

When downloading mockery I ran into an issue where we were using the old version. This PR updates to a more recent version.

changelog?

Closes: #XXX
pull/5297/head
Marko 4 years ago
committed by GitHub
parent
commit
fbdf8b098e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 34 additions and 11 deletions
  1. +1
    -1
      evidence/mocks/block_store.go
  2. +1
    -1
      p2p/mocks/peer.go
  3. +1
    -1
      p2p/peer.go
  4. +1
    -1
      proxy/app_conn.go
  5. +1
    -1
      proxy/mocks/app_conn_consensus.go
  6. +24
    -1
      proxy/mocks/app_conn_mempool.go
  7. +1
    -1
      proxy/mocks/app_conn_query.go
  8. +1
    -1
      proxy/mocks/app_conn_snapshot.go
  9. +1
    -1
      state/mocks/evidence_pool.go
  10. +1
    -1
      statesync/mocks/state_provider.go
  11. +1
    -1
      statesync/stateprovider.go

+ 1
- 1
evidence/mocks/block_store.go View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.1.0. DO NOT EDIT.
// Code generated by mockery v2.2.1. DO NOT EDIT.
package mocks package mocks


+ 1
- 1
p2p/mocks/peer.go View File

@ -1,4 +1,4 @@
// Code generated by mockery v1.0.0. DO NOT EDIT.
// Code generated by mockery v2.2.1. DO NOT EDIT.
package mocks package mocks


+ 1
- 1
p2p/peer.go View File

@ -12,7 +12,7 @@ import (
tmconn "github.com/tendermint/tendermint/p2p/conn" tmconn "github.com/tendermint/tendermint/p2p/conn"
) )
//go:generate mockery -case underscore -name Peer
//go:generate mockery --case underscore --name Peer
const metricsTickerDuration = 10 * time.Second const metricsTickerDuration = 10 * time.Second


+ 1
- 1
proxy/app_conn.go View File

@ -5,7 +5,7 @@ import (
"github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/abci/types"
) )
//go:generate mockery -case underscore -name AppConnConsensus|AppConnMempool|AppConnQuery|AppConnSnapshot
//go:generate mockery --case underscore --name AppConnConsensus|AppConnMempool|AppConnQuery|AppConnSnapshot
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
// Enforce which abci msgs can be sent on a connection at the type level // Enforce which abci msgs can be sent on a connection at the type level


+ 1
- 1
proxy/mocks/app_conn_consensus.go View File

@ -1,4 +1,4 @@
// Code generated by mockery v1.0.0. DO NOT EDIT.
// Code generated by mockery v2.2.1. DO NOT EDIT.
package mocks package mocks


+ 24
- 1
proxy/mocks/app_conn_mempool.go View File

@ -1,4 +1,4 @@
// Code generated by mockery v1.0.0. DO NOT EDIT.
// Code generated by mockery v2.2.1. DO NOT EDIT.
package mocks package mocks
@ -30,6 +30,29 @@ func (_m *AppConnMempool) CheckTxAsync(_a0 types.RequestCheckTx) *abcicli.ReqRes
return r0 return r0
} }
// CheckTxSync provides a mock function with given fields: _a0
func (_m *AppConnMempool) CheckTxSync(_a0 types.RequestCheckTx) (*types.ResponseCheckTx, error) {
ret := _m.Called(_a0)
var r0 *types.ResponseCheckTx
if rf, ok := ret.Get(0).(func(types.RequestCheckTx) *types.ResponseCheckTx); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*types.ResponseCheckTx)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(types.RequestCheckTx) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Error provides a mock function with given fields: // Error provides a mock function with given fields:
func (_m *AppConnMempool) Error() error { func (_m *AppConnMempool) Error() error {
ret := _m.Called() ret := _m.Called()


+ 1
- 1
proxy/mocks/app_conn_query.go View File

@ -1,4 +1,4 @@
// Code generated by mockery v1.0.0. DO NOT EDIT.
// Code generated by mockery v2.2.1. DO NOT EDIT.
package mocks package mocks


+ 1
- 1
proxy/mocks/app_conn_snapshot.go View File

@ -1,4 +1,4 @@
// Code generated by mockery v1.0.0. DO NOT EDIT.
// Code generated by mockery v2.2.1. DO NOT EDIT.
package mocks package mocks


+ 1
- 1
state/mocks/evidence_pool.go View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.1.0. DO NOT EDIT.
// Code generated by mockery v2.2.1. DO NOT EDIT.
package mocks package mocks


+ 1
- 1
statesync/mocks/state_provider.go View File

@ -1,4 +1,4 @@
// Code generated by mockery v1.0.0. DO NOT EDIT.
// Code generated by mockery v2.2.1. DO NOT EDIT.
package mocks package mocks


+ 1
- 1
statesync/stateprovider.go View File

@ -20,7 +20,7 @@ import (
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
) )
//go:generate mockery -case underscore -name StateProvider
//go:generate mockery --case underscore --name StateProvider
// StateProvider is a provider of trusted state data for bootstrapping a node. This refers // StateProvider is a provider of trusted state data for bootstrapping a node. This refers
// to the state.State object, not the state machine. // to the state.State object, not the state machine.


Loading…
Cancel
Save