github.com/sneal/packer@v0.5.2/builder/vmware/iso/step_test.go (about)

     1  package iso
     2  
     3  import (
     4  	"bytes"
     5  	"github.com/mitchellh/multistep"
     6  	vmwcommon "github.com/mitchellh/packer/builder/vmware/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(vmwcommon.DriverMock))
    14  	state.Put("ui", &packer.BasicUi{
    15  		Reader: new(bytes.Buffer),
    16  		Writer: new(bytes.Buffer),
    17  	})
    18  	return state
    19  }