github.com/sneal/packer@v0.5.2/builder/virtualbox/ovf/step_test.go (about)

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