We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GetLocked
1 parent 57c2a42 commit b2b0467Copy full SHA for b2b0467
proxmox/config__guest__resource__mock.go
@@ -13,6 +13,7 @@ type RawGuestResourceMock struct {
13
GetDiskWriteTotalFunc func() uint
14
GetHaStateFunc func() string
15
GetIDFunc func() GuestID
16
+ GetLockedFunc func() bool
17
GetMemoryTotalInBytesFunc func() uint
18
GetMemoryUsedInBytesFunc func() uint
19
GetNameFunc func() GuestName
@@ -94,6 +95,13 @@ func (m *RawGuestResourceMock) GetID() GuestID {
94
95
return m.GetIDFunc()
96
}
97
98
+func (m *RawGuestResourceMock) GetLocked() bool {
99
+ if m.GetLockedFunc == nil {
100
+ m.panic("GetLockedFunc")
101
+ }
102
+ return m.GetLockedFunc()
103
+}
104
+
105
func (m *RawGuestResourceMock) GetMemoryTotalInBytes() uint {
106
if m.GetMemoryTotalInBytesFunc == nil {
107
m.panic("GetMemoryTotalInBytesFunc")
0 commit comments