mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-18 22:14:35 +00:00
Bumps [github.com/vektra/mockery/v2](https://github.com/vektra/mockery) from 2.10.2 to 2.10.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vektra/mockery/releases">github.com/vektra/mockery/v2's releases</a>.</em></p> <blockquote> <h2>v2.10.4</h2> <h2>Changelog</h2> <ul> <li>c943e69 Merge pull request <a href="https://github-redirect.dependabot.com/vektra/mockery/issues/441">#441</a> from cfstras/fix/support-more-env-keys</li> <li>ed87cf6 fix: allow configuring flags with "-" as Env var</li> <li>17abd96 fix: unused config field <code>Tags</code></li> <li>53114cf test: add test for env var configurations</li> </ul> <h2>v2.10.3</h2> <h2>Changelog</h2> <ul> <li>ee25bcf Add/update mocks</li> <li>4703d1a Merge pull request <a href="https://github-redirect.dependabot.com/vektra/mockery/issues/444">#444</a> from vektra/remove_need_deps</li> <li>ba1f213 Remove packages.NeedDeps</li> <li>ed38b20 Update go.sum</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vektra/mockery/commit/c943e696a04fb7357ae62ef162e1cf47c171cd4c"><code>c943e69</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/vektra/mockery/issues/441">#441</a> from cfstras/fix/support-more-env-keys</li> <li><a href="https://github.com/vektra/mockery/commit/4703d1a42fe803968924d87f77e8d79181dc5108"><code>4703d1a</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/vektra/mockery/issues/444">#444</a> from vektra/remove_need_deps</li> <li><a href="https://github.com/vektra/mockery/commit/ed38b20a49e7122f22a89a8a24c74d4e6bd76afb"><code>ed38b20</code></a> Update go.sum</li> <li><a href="https://github.com/vektra/mockery/commit/ee25bcfcb54c98ea7bcb6ac95d098db2390ce11f"><code>ee25bcf</code></a> Add/update mocks</li> <li><a href="https://github.com/vektra/mockery/commit/ba1f213e177e70df3146e65b6e99731c9bf4faaa"><code>ba1f213</code></a> Remove packages.NeedDeps</li> <li><a href="https://github.com/vektra/mockery/commit/17abd96c5774761020102a6b1c9edb748a4f6999"><code>17abd96</code></a> fix: unused config field <code>Tags</code></li> <li><a href="https://github.com/vektra/mockery/commit/53114cfce4dac4ef74eaed9625f228f52dd9dfcd"><code>53114cf</code></a> test: add test for env var configurations</li> <li><a href="https://github.com/vektra/mockery/commit/ed87cf671a9acc321bef505ff84c44596cb4c4e9"><code>ed87cf6</code></a> fix: allow configuring flags with "-" as Env var</li> <li>See full diff in <a href="https://github.com/vektra/mockery/compare/v2.10.2...v2.10.4">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
74 lines
1.7 KiB
Go
74 lines
1.7 KiB
Go
// Code generated by mockery. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
state "github.com/tendermint/tendermint/internal/state"
|
|
|
|
types "github.com/tendermint/tendermint/types"
|
|
)
|
|
|
|
// EvidencePool is an autogenerated mock type for the EvidencePool type
|
|
type EvidencePool struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// AddEvidence provides a mock function with given fields: _a0, _a1
|
|
func (_m *EvidencePool) AddEvidence(_a0 context.Context, _a1 types.Evidence) error {
|
|
ret := _m.Called(_a0, _a1)
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func(context.Context, types.Evidence) error); ok {
|
|
r0 = rf(_a0, _a1)
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// CheckEvidence provides a mock function with given fields: _a0, _a1
|
|
func (_m *EvidencePool) CheckEvidence(_a0 context.Context, _a1 types.EvidenceList) error {
|
|
ret := _m.Called(_a0, _a1)
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func(context.Context, types.EvidenceList) error); ok {
|
|
r0 = rf(_a0, _a1)
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// PendingEvidence provides a mock function with given fields: maxBytes
|
|
func (_m *EvidencePool) PendingEvidence(maxBytes int64) ([]types.Evidence, int64) {
|
|
ret := _m.Called(maxBytes)
|
|
|
|
var r0 []types.Evidence
|
|
if rf, ok := ret.Get(0).(func(int64) []types.Evidence); ok {
|
|
r0 = rf(maxBytes)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).([]types.Evidence)
|
|
}
|
|
}
|
|
|
|
var r1 int64
|
|
if rf, ok := ret.Get(1).(func(int64) int64); ok {
|
|
r1 = rf(maxBytes)
|
|
} else {
|
|
r1 = ret.Get(1).(int64)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// Update provides a mock function with given fields: _a0, _a1, _a2
|
|
func (_m *EvidencePool) Update(_a0 context.Context, _a1 state.State, _a2 types.EvidenceList) {
|
|
_m.Called(_a0, _a1, _a2)
|
|
}
|