Files
Packer-Cn/builder/virtualbox/common/step_test.go
T

20 lines
374 B
Go
Raw Normal View History

2013-12-21 15:20:15 -08:00
package common
import (
"bytes"
2018-01-22 15:32:33 -08:00
"testing"
2018-01-19 16:18:44 -08:00
"github.com/hashicorp/packer/helper/multistep"
2017-04-04 13:39:01 -07:00
"github.com/hashicorp/packer/packer"
2013-12-21 15:20:15 -08:00
)
func testState(t *testing.T) multistep.StateBag {
state := new(multistep.BasicStateBag)
state.Put("driver", new(DriverMock))
2013-12-21 15:20:15 -08:00
state.Put("ui", &packer.BasicUi{
Reader: new(bytes.Buffer),
Writer: new(bytes.Buffer),
})
return state
}