Skip to content

Commit b2b0467

Browse files
committed
fix: missing mocked GetLocked
1 parent 57c2a42 commit b2b0467

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

proxmox/config__guest__resource__mock.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type RawGuestResourceMock struct {
1313
GetDiskWriteTotalFunc func() uint
1414
GetHaStateFunc func() string
1515
GetIDFunc func() GuestID
16+
GetLockedFunc func() bool
1617
GetMemoryTotalInBytesFunc func() uint
1718
GetMemoryUsedInBytesFunc func() uint
1819
GetNameFunc func() GuestName
@@ -94,6 +95,13 @@ func (m *RawGuestResourceMock) GetID() GuestID {
9495
return m.GetIDFunc()
9596
}
9697

98+
func (m *RawGuestResourceMock) GetLocked() bool {
99+
if m.GetLockedFunc == nil {
100+
m.panic("GetLockedFunc")
101+
}
102+
return m.GetLockedFunc()
103+
}
104+
97105
func (m *RawGuestResourceMock) GetMemoryTotalInBytes() uint {
98106
if m.GetMemoryTotalInBytesFunc == nil {
99107
m.panic("GetMemoryTotalInBytesFunc")

0 commit comments

Comments
 (0)