storj/pkg/eestream/mocks/mock_client.go

108 lines
3.5 KiB
Go
Raw Normal View History

// Code generated by MockGen. DO NOT EDIT.
// Source: storj.io/storj/pkg/eestream (interfaces: ErasureScheme)
// Package mock_eestream is a generated GoMock package.
package mock_eestream
import (
reflect "reflect"
Node Identity (#193) * peertls: don't log errors for double close understood that this part of the code is undergoing heavy change right now, but just want to make sure this fix gets incorporated somewhere * git cleanup: node-id stuff * cleanup * rename identity_util.go * wip `CertificateAuthority` refactor * refactoring * gitignore update * wip * Merge remote-tracking branch 'storj/doubleclose' into node-id3 * storj/doubleclose: peertls: don't log errors for double close * add peertls tests & gomports * wip: + refactor + style changes + cleanup + [wip] add version to CA and identity configs + [wip] heavy client setup * refactor * wip: + refactor + style changes + add `CAConfig.Load` + add `CAConfig.Save` * wip: + add `LoadOrCreate` and `Create` to CA and Identity configs + add overwrite to CA and identity configs + heavy client setup + refactor + style changes + cleanup * wip * fixing things * fixing things * wip hc setup * hc setup: + refactor + bugfixing * improvements based on reveiw feedback * goimports * improvements: + responding to review feedback + refactor * feedback-based improvements * feedback-based improvements * feedback-based improvements * feedback-based improvements * feedback-based improvements * feedback-based improvements * cleanup * refactoring CA and Identity structs * Merge branch 'master' into node-id3 * move version field to setup config structs for CA and identity * fix typo * responding to revieiw feedback * responding to revieiw feedback * responding to revieiw feedback * responding to revieiw feedback * responding to revieiw feedback * responding to revieiw feedback * Merge branch 'master' into node-id3 * fix gateway setup finally * go imports * fix `FullCertificateAuthority.GenerateIdentity` * cleanup overlay tests * bugfixing * update ca/identity setup * go imports * fix peertls test copy/paste fail * responding to review feedback * setup tweaking * update farmer setup
2018-08-13 09:39:45 +01:00
gomock "github.com/golang/mock/gomock"
)
// MockErasureScheme is a mock of ErasureScheme interface
type MockErasureScheme struct {
ctrl *gomock.Controller
recorder *MockErasureSchemeMockRecorder
}
// MockErasureSchemeMockRecorder is the mock recorder for MockErasureScheme
type MockErasureSchemeMockRecorder struct {
mock *MockErasureScheme
}
// NewMockErasureScheme creates a new mock instance
func NewMockErasureScheme(ctrl *gomock.Controller) *MockErasureScheme {
mock := &MockErasureScheme{ctrl: ctrl}
mock.recorder = &MockErasureSchemeMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockErasureScheme) EXPECT() *MockErasureSchemeMockRecorder {
return m.recorder
}
// Decode mocks base method
func (m *MockErasureScheme) Decode(arg0 []byte, arg1 map[int][]byte) ([]byte, error) {
ret := m.ctrl.Call(m, "Decode", arg0, arg1)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Decode indicates an expected call of Decode
func (mr *MockErasureSchemeMockRecorder) Decode(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Decode", reflect.TypeOf((*MockErasureScheme)(nil).Decode), arg0, arg1)
}
// Encode mocks base method
func (m *MockErasureScheme) Encode(arg0 []byte, arg1 func(int, []byte)) error {
ret := m.ctrl.Call(m, "Encode", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Encode indicates an expected call of Encode
func (mr *MockErasureSchemeMockRecorder) Encode(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Encode", reflect.TypeOf((*MockErasureScheme)(nil).Encode), arg0, arg1)
}
// ErasureShareSize mocks base method
func (m *MockErasureScheme) ErasureShareSize() int {
ret := m.ctrl.Call(m, "ErasureShareSize")
ret0, _ := ret[0].(int)
return ret0
}
// ErasureShareSize indicates an expected call of ErasureShareSize
func (mr *MockErasureSchemeMockRecorder) ErasureShareSize() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ErasureShareSize", reflect.TypeOf((*MockErasureScheme)(nil).ErasureShareSize))
}
// RequiredCount mocks base method
func (m *MockErasureScheme) RequiredCount() int {
ret := m.ctrl.Call(m, "RequiredCount")
ret0, _ := ret[0].(int)
return ret0
}
// RequiredCount indicates an expected call of RequiredCount
func (mr *MockErasureSchemeMockRecorder) RequiredCount() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequiredCount", reflect.TypeOf((*MockErasureScheme)(nil).RequiredCount))
}
// StripeSize mocks base method
func (m *MockErasureScheme) StripeSize() int {
ret := m.ctrl.Call(m, "StripeSize")
ret0, _ := ret[0].(int)
return ret0
}
// StripeSize indicates an expected call of StripeSize
func (mr *MockErasureSchemeMockRecorder) StripeSize() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StripeSize", reflect.TypeOf((*MockErasureScheme)(nil).StripeSize))
}
// TotalCount mocks base method
func (m *MockErasureScheme) TotalCount() int {
ret := m.ctrl.Call(m, "TotalCount")
ret0, _ := ret[0].(int)
return ret0
}
// TotalCount indicates an expected call of TotalCount
func (mr *MockErasureSchemeMockRecorder) TotalCount() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalCount", reflect.TypeOf((*MockErasureScheme)(nil).TotalCount))
}