21 lines
492 B
Go
Raw Normal View History

package ovf
import (
"bytes"
2018-01-22 17:21:10 -08:00
"testing"
2017-04-04 13:39:01 -07:00
vboxcommon "github.com/hashicorp/packer/builder/virtualbox/common"
2020-11-17 16:31:03 -08:00
"github.com/hashicorp/packer/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer/packer-plugin-sdk/packer"
)
func testState(t *testing.T) multistep.StateBag {
state := new(multistep.BasicStateBag)
state.Put("driver", new(vboxcommon.DriverMock))
state.Put("ui", &packersdk.BasicUi{
Reader: new(bytes.Buffer),
Writer: new(bytes.Buffer),
})
return state
}