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