2021-10-11 19:05:05 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2022-06-14 18:31:17 +00:00
|
|
|
// Source: github.com/filecoin-project/lotus/storage/paths (interfaces: Store)
|
2021-10-11 19:05:05 +00:00
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
|
2022-06-14 15:00:51 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2024-01-12 10:03:37 +00:00
|
|
|
cid "github.com/ipfs/go-cid"
|
2022-06-14 15:00:51 +00:00
|
|
|
|
2021-10-11 19:05:05 +00:00
|
|
|
abi "github.com/filecoin-project/go-state-types/abi"
|
2022-06-14 15:00:51 +00:00
|
|
|
|
2022-06-14 18:08:10 +00:00
|
|
|
fsutil "github.com/filecoin-project/lotus/storage/sealer/fsutil"
|
2022-06-14 18:03:38 +00:00
|
|
|
storiface "github.com/filecoin-project/lotus/storage/sealer/storiface"
|
2021-10-11 19:05:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// MockStore is a mock of Store interface.
|
|
|
|
type MockStore struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockStoreMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockStoreMockRecorder is the mock recorder for MockStore.
|
|
|
|
type MockStoreMockRecorder struct {
|
|
|
|
mock *MockStore
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockStore creates a new mock instance.
|
|
|
|
func NewMockStore(ctrl *gomock.Controller) *MockStore {
|
|
|
|
mock := &MockStore{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockStoreMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockStore) EXPECT() *MockStoreMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// AcquireSector mocks base method.
|
2022-06-17 11:31:05 +00:00
|
|
|
func (m *MockStore) AcquireSector(arg0 context.Context, arg1 storiface.SectorRef, arg2, arg3 storiface.SectorFileType, arg4 storiface.PathType, arg5 storiface.AcquireMode) (storiface.SectorPaths, storiface.SectorPaths, error) {
|
2021-10-11 19:05:05 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "AcquireSector", arg0, arg1, arg2, arg3, arg4, arg5)
|
|
|
|
ret0, _ := ret[0].(storiface.SectorPaths)
|
|
|
|
ret1, _ := ret[1].(storiface.SectorPaths)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
|
|
|
// AcquireSector indicates an expected call of AcquireSector.
|
|
|
|
func (mr *MockStoreMockRecorder) AcquireSector(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcquireSector", reflect.TypeOf((*MockStore)(nil).AcquireSector), arg0, arg1, arg2, arg3, arg4, arg5)
|
|
|
|
}
|
|
|
|
|
|
|
|
// FsStat mocks base method.
|
2022-01-18 10:57:04 +00:00
|
|
|
func (m *MockStore) FsStat(arg0 context.Context, arg1 storiface.ID) (fsutil.FsStat, error) {
|
2021-10-11 19:05:05 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "FsStat", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(fsutil.FsStat)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// FsStat indicates an expected call of FsStat.
|
|
|
|
func (mr *MockStoreMockRecorder) FsStat(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FsStat", reflect.TypeOf((*MockStore)(nil).FsStat), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2024-02-17 17:13:30 +00:00
|
|
|
// GeneratePoRepVanillaProof mocks base method.
|
|
|
|
func (m *MockStore) GeneratePoRepVanillaProof(arg0 context.Context, arg1 storiface.SectorRef, arg2, arg3 cid.Cid, arg4 abi.SealRandomness, arg5 abi.InteractiveSealRandomness) ([]byte, error) {
|
2022-01-10 17:24:00 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-02-17 17:13:30 +00:00
|
|
|
ret := m.ctrl.Call(m, "GeneratePoRepVanillaProof", arg0, arg1, arg2, arg3, arg4, arg5)
|
2022-01-10 17:24:00 +00:00
|
|
|
ret0, _ := ret[0].([]byte)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2024-02-17 17:13:30 +00:00
|
|
|
// GeneratePoRepVanillaProof indicates an expected call of GeneratePoRepVanillaProof.
|
|
|
|
func (mr *MockStoreMockRecorder) GeneratePoRepVanillaProof(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
|
2022-01-10 17:24:00 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-02-17 17:13:30 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GeneratePoRepVanillaProof", reflect.TypeOf((*MockStore)(nil).GeneratePoRepVanillaProof), arg0, arg1, arg2, arg3, arg4, arg5)
|
2022-01-10 17:24:00 +00:00
|
|
|
}
|
|
|
|
|
2024-02-17 17:13:30 +00:00
|
|
|
// GenerateSingleVanillaProof mocks base method.
|
|
|
|
func (m *MockStore) GenerateSingleVanillaProof(arg0 context.Context, arg1 abi.ActorID, arg2 storiface.PostSectorChallenge, arg3 abi.RegisteredPoStProof) ([]byte, error) {
|
2024-01-12 10:03:37 +00:00
|
|
|
m.ctrl.T.Helper()
|
2024-02-17 17:13:30 +00:00
|
|
|
ret := m.ctrl.Call(m, "GenerateSingleVanillaProof", arg0, arg1, arg2, arg3)
|
2024-01-12 10:03:37 +00:00
|
|
|
ret0, _ := ret[0].([]byte)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2024-02-17 17:13:30 +00:00
|
|
|
// GenerateSingleVanillaProof indicates an expected call of GenerateSingleVanillaProof.
|
|
|
|
func (mr *MockStoreMockRecorder) GenerateSingleVanillaProof(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
2024-01-12 10:03:37 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2024-02-17 17:13:30 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateSingleVanillaProof", reflect.TypeOf((*MockStore)(nil).GenerateSingleVanillaProof), arg0, arg1, arg2, arg3)
|
2024-01-12 10:03:37 +00:00
|
|
|
}
|
|
|
|
|
2021-10-11 19:05:05 +00:00
|
|
|
// MoveStorage mocks base method.
|
2022-06-17 11:31:05 +00:00
|
|
|
func (m *MockStore) MoveStorage(arg0 context.Context, arg1 storiface.SectorRef, arg2 storiface.SectorFileType) error {
|
2021-10-11 19:05:05 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "MoveStorage", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// MoveStorage indicates an expected call of MoveStorage.
|
|
|
|
func (mr *MockStoreMockRecorder) MoveStorage(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MoveStorage", reflect.TypeOf((*MockStore)(nil).MoveStorage), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Remove mocks base method.
|
2022-01-18 10:57:04 +00:00
|
|
|
func (m *MockStore) Remove(arg0 context.Context, arg1 abi.SectorID, arg2 storiface.SectorFileType, arg3 bool, arg4 []storiface.ID) error {
|
2021-10-11 19:05:05 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Remove", arg0, arg1, arg2, arg3, arg4)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Remove indicates an expected call of Remove.
|
|
|
|
func (mr *MockStoreMockRecorder) Remove(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockStore)(nil).Remove), arg0, arg1, arg2, arg3, arg4)
|
|
|
|
}
|
|
|
|
|
|
|
|
// RemoveCopies mocks base method.
|
|
|
|
func (m *MockStore) RemoveCopies(arg0 context.Context, arg1 abi.SectorID, arg2 storiface.SectorFileType) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "RemoveCopies", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// RemoveCopies indicates an expected call of RemoveCopies.
|
|
|
|
func (mr *MockStoreMockRecorder) RemoveCopies(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveCopies", reflect.TypeOf((*MockStore)(nil).RemoveCopies), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Reserve mocks base method.
|
2022-06-17 11:31:05 +00:00
|
|
|
func (m *MockStore) Reserve(arg0 context.Context, arg1 storiface.SectorRef, arg2 storiface.SectorFileType, arg3 storiface.SectorPaths, arg4 map[storiface.SectorFileType]int) (func(), error) {
|
2021-10-11 19:05:05 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Reserve", arg0, arg1, arg2, arg3, arg4)
|
|
|
|
ret0, _ := ret[0].(func())
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Reserve indicates an expected call of Reserve.
|
|
|
|
func (mr *MockStoreMockRecorder) Reserve(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reserve", reflect.TypeOf((*MockStore)(nil).Reserve), arg0, arg1, arg2, arg3, arg4)
|
|
|
|
}
|