builder/parallels: Add mock for "SetDefaultConfiguration" method
Fixes unit test failures
This commit is contained in:
parent
2860bfdf82
commit
0a53fbc29d
|
@ -37,6 +37,9 @@ type DriverMock struct {
|
|||
SendKeyScanCodesCalls [][]string
|
||||
SendKeyScanCodesErrs []error
|
||||
|
||||
SetDefaultConfigurationCalled bool
|
||||
SetDefaultConfigurationError error
|
||||
|
||||
ToolsIsoPathCalled bool
|
||||
ToolsIsoPathFlavor string
|
||||
ToolsIsoPathResult string
|
||||
|
@ -107,6 +110,11 @@ func (d *DriverMock) SendKeyScanCodes(name string, scancodes ...string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (d *DriverMock) SetDefaultConfiguration(name string) error {
|
||||
d.SetDefaultConfigurationCalled = true
|
||||
return d.SetDefaultConfigurationError
|
||||
}
|
||||
|
||||
func (d *DriverMock) Mac(name string) (string, error) {
|
||||
d.MacName = name
|
||||
return d.MacReturn, d.MacError
|
||||
|
|
Loading…
Reference in New Issue