prysm-pulse/cmd/mock/password_reader_mock.go
Preston Van Loon 943dec525c
Refactor mock test helpers (#10133)
* Delete deploy contract tool. Move mock to its own package as testonly with some helper functions

* gofmt contracts/deposit/mock/mock.go

* move stategen mock.go to its on testonly pkg

* move password_reader_mock.go to mock testonly package

* move mock keymanager to its own testonly package

* move attestations mock

* move voluntaryexits mock

* Move slashings mock to mock pkg

* move the slasher mock

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-26 14:48:20 +00:00

50 lines
1.5 KiB
Go
Generated

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/connorwstein/prysm/cmd (interfaces: PasswordReader)
// Package mock_cmd is a generated GoMock package.
package mock
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockPasswordReader is a mock of PasswordReader interface
type MockPasswordReader struct {
ctrl *gomock.Controller
recorder *MockPasswordReaderMockRecorder
}
// MockPasswordReaderMockRecorder is the mock recorder for MockPasswordReader
type MockPasswordReaderMockRecorder struct {
mock *MockPasswordReader
}
// NewMockPasswordReader creates a new mock instance
func NewMockPasswordReader(ctrl *gomock.Controller) *MockPasswordReader {
mock := &MockPasswordReader{ctrl: ctrl}
mock.recorder = &MockPasswordReaderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockPasswordReader) EXPECT() *MockPasswordReaderMockRecorder {
return m.recorder
}
// ReadPassword mocks base method
func (m *MockPasswordReader) ReadPassword() (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReadPassword")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ReadPassword indicates an expected call of ReadPassword
func (mr *MockPasswordReaderMockRecorder) ReadPassword() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadPassword", reflect.TypeOf((*MockPasswordReader)(nil).ReadPassword))
}