github.com/mmcquillan/packer@v1.1.1-0.20171009221028-c85cf0483a5d/builder/vmware/iso/step_test.go (about) 1 package iso 2 3 import ( 4 "bytes" 5 vmwcommon "github.com/hashicorp/packer/builder/vmware/common" 6 "github.com/hashicorp/packer/packer" 7 "github.com/mitchellh/multistep" 8 "testing" 9 ) 10 11 func testState(t *testing.T) multistep.StateBag { 12 state := new(multistep.BasicStateBag) 13 state.Put("driver", new(vmwcommon.DriverMock)) 14 state.Put("ui", &packer.BasicUi{ 15 Reader: new(bytes.Buffer), 16 Writer: new(bytes.Buffer), 17 }) 18 return state 19 }