github.com/rothwerx/packer@v0.9.0/builder/parallels/pvm/step_test.go (about) 1 package pvm 2 3 import ( 4 "bytes" 5 "github.com/mitchellh/multistep" 6 parallelscommon "github.com/mitchellh/packer/builder/parallels/common" 7 "github.com/mitchellh/packer/packer" 8 "testing" 9 ) 10 11 func testState(t *testing.T) multistep.StateBag { 12 state := new(multistep.BasicStateBag) 13 state.Put("driver", new(parallelscommon.DriverMock)) 14 state.Put("ui", &packer.BasicUi{ 15 Reader: new(bytes.Buffer), 16 Writer: new(bytes.Buffer), 17 }) 18 return state 19 }