mirror of
https://github.com/luxfi/lpm.git
synced 2026-11-02 08:07:34 +00:00
- Add JoinChain method for SDK compatibility - Update to use filesystem/perms - Update to codec v1.1.3, sdk v1.16.46
84 lines
2.5 KiB
Go
84 lines
2.5 KiB
Go
// Copyright (C) 2019-2025, Lux Partners Limited. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
//
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: state/repository.go
|
|
|
|
// Package state is a generated GoMock package.
|
|
package state
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
types "github.com/luxfi/lpm/types"
|
|
)
|
|
|
|
// MockRepository is a mock of Repository interface.
|
|
type MockRepository struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockRepositoryMockRecorder
|
|
}
|
|
|
|
// MockRepositoryMockRecorder is the mock recorder for MockRepository.
|
|
type MockRepositoryMockRecorder struct {
|
|
mock *MockRepository
|
|
}
|
|
|
|
// NewMockRepository creates a new mock instance.
|
|
func NewMockRepository(ctrl *gomock.Controller) *MockRepository {
|
|
mock := &MockRepository{ctrl: ctrl}
|
|
mock.recorder = &MockRepositoryMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetPath mocks base method.
|
|
func (m *MockRepository) GetPath() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetPath")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// GetPath indicates an expected call of GetPath.
|
|
func (mr *MockRepositoryMockRecorder) GetPath() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPath", reflect.TypeOf((*MockRepository)(nil).GetPath))
|
|
}
|
|
|
|
// GetChain mocks base method.
|
|
func (m *MockRepository) GetChain(name string) (Definition[types.Chain], error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetChain", name)
|
|
ret0, _ := ret[0].(Definition[types.Chain])
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetChain indicates an expected call of GetChain.
|
|
func (mr *MockRepositoryMockRecorder) GetChain(name interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChain", reflect.TypeOf((*MockRepository)(nil).GetChain), name)
|
|
}
|
|
|
|
// GetVM mocks base method.
|
|
func (m *MockRepository) GetVM(name string) (Definition[types.VM], error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetVM", name)
|
|
ret0, _ := ret[0].(Definition[types.VM])
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetVM indicates an expected call of GetVM.
|
|
func (mr *MockRepositoryMockRecorder) GetVM(name interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVM", reflect.TypeOf((*MockRepository)(nil).GetVM), name)
|
|
}
|