prysm-pulse/shared/p2p/mock/broadcaster_mock.go
Preston Van Loon 4add403335
Validator Proposer Rewrite (#1462)
* WIP - with TODOs

* interface w/ test

* basic test for broadcast

* Add computeStateRoot funciton

* remove custody challenge

* resolve TODO lint issues

* more TODOs

* revert new line in types.proto

* broadcaster comment

* one of several failure condition tests

* Add test cases

* handle compute state error test case

* fix config in validator helpers

* fix tests too

* fix conflict

* partial PR feedback

* remove p2p

* gazelle

* package comment

* Better godoc
2019-02-05 08:47:25 -05:00

45 lines
1.3 KiB
Go
Generated

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/prysmaticlabs/prysm/shared/p2p (interfaces: Broadcaster)
// Package mock_p2p is a generated GoMock package.
package mock_p2p
import (
proto "github.com/gogo/protobuf/proto"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockBroadcaster is a mock of Broadcaster interface
type MockBroadcaster struct {
ctrl *gomock.Controller
recorder *MockBroadcasterMockRecorder
}
// MockBroadcasterMockRecorder is the mock recorder for MockBroadcaster
type MockBroadcasterMockRecorder struct {
mock *MockBroadcaster
}
// NewMockBroadcaster creates a new mock instance
func NewMockBroadcaster(ctrl *gomock.Controller) *MockBroadcaster {
mock := &MockBroadcaster{ctrl: ctrl}
mock.recorder = &MockBroadcasterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockBroadcaster) EXPECT() *MockBroadcasterMockRecorder {
return m.recorder
}
// Broadcast mocks base method
func (m *MockBroadcaster) Broadcast(arg0 proto.Message) {
m.ctrl.Call(m, "Broadcast", arg0)
}
// Broadcast indicates an expected call of Broadcast
func (mr *MockBroadcasterMockRecorder) Broadcast(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Broadcast", reflect.TypeOf((*MockBroadcaster)(nil).Broadcast), arg0)
}