Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove and regenerate mocks #7599

Merged
merged 1 commit into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,192 changes: 0 additions & 1,192 deletions core/chains/evm/config/mocks/chain_scoped_config.go

Large diffs are not rendered by default.

142 changes: 0 additions & 142 deletions core/chains/evm/forwarders/mocks/orm.go

This file was deleted.

2 changes: 0 additions & 2 deletions core/chains/evm/forwarders/orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import (
"github.com/smartcontractkit/chainlink/core/utils"
)

//go:generate mockery --name ORM --output ./mocks/ --case=underscore

type ORM interface {
CreateForwarder(addr common.Address, evmChainId utils.Big) (fwd Forwarder, err error)
FindForwarders(offset, limit int) ([]Forwarder, int, error)
Expand Down
61 changes: 0 additions & 61 deletions core/chains/evm/headtracker/mocks/head_listener.go

This file was deleted.

3 changes: 2 additions & 1 deletion core/chains/evm/headtracker/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type HeadTracker interface {

// HeadTrackable represents any object that wishes to respond to ethereum events,
// after being subscribed to HeadBroadcaster
//
//go:generate mockery --name HeadTrackable --output ../mocks/ --case=underscore
type HeadTrackable interface {
OnNewLongestChain(ctx context.Context, head *evmtypes.Head)
Expand All @@ -46,6 +47,7 @@ type HeadBroadcasterRegistry interface {

// HeadBroadcaster relays heads from the head tracker to subscribed jobs, it is less robust against
// congestion than the head tracker, and missed heads should be expected by consuming jobs
//
//go:generate mockery --name HeadBroadcaster --output ../mocks/ --case=underscore
type HeadBroadcaster interface {
services.ServiceCtx
Expand All @@ -57,7 +59,6 @@ type HeadBroadcaster interface {
type NewHeadHandler func(ctx context.Context, header *evmtypes.Head) error

// HeadListener manages evmclient.Client connection that receives heads from the eth node
//go:generate mockery --name HeadListener --output ../mocks/ --case=underscore
type HeadListener interface {
// ListenForNewHeads kicks off the listen loop (not thread safe)
// done() must be executed upon leaving ListenForNewHeads()
Expand Down
2 changes: 0 additions & 2 deletions core/chains/evm/log/broadcaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import (
)

//go:generate mockery --name Broadcaster --output ./mocks/ --case=underscore --structname Broadcaster --filename broadcaster.go
//go:generate mockery --name Listener --output ./mocks/ --case=underscore --structname Listener --filename listener.go
//go:generate mockery --name Config --output ./mocks/ --case=underscore --structname Config --filename config.go

type (
// The Broadcaster manages log subscription requests for the Chainlink node. Instead
Expand Down
81 changes: 0 additions & 81 deletions core/chains/evm/log/mocks/config.go

This file was deleted.

47 changes: 0 additions & 47 deletions core/chains/evm/log/mocks/listener.go

This file was deleted.

Loading