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