// newTestRuntimeConfig creates a new RuntimeConfig
newTestRuntimeConfig creates a new RuntimeConfig
// newTestRuntimeConfig creates a new RuntimeConfig
func newTestRuntimeConfig(dir, consolePath string, create bool) (oci.RuntimeConfig, error) {
	if dir == "" {
		return oci.RuntimeConfig{}, errors.New("BUG: need directory")
	}
	hypervisorConfig, err := newTestHypervisorConfig(dir, create)
	if err != nil {
		return oci.RuntimeConfig{}, err
	}
	return oci.RuntimeConfig{
		HypervisorType:   vc.QemuHypervisor,
		HypervisorConfig: hypervisorConfig,
		ProxyType:        vc.KataProxyType,
		Console:          consolePath,
	}, nil
}
func newTestRuntimeConfig ( dir , consolePath string , create bool ) ( oci . RuntimeConfig , error ) { if dir == " " { return oci . RuntimeConfig { } , errors . New ( " " ) } hypervisorConfig , err := newTestHypervisorConfig ( dir , create ) if err != nil { return oci . RuntimeConfig { } , err } return oci . RuntimeConfig { HypervisorType : vc . QemuHypervisor , HypervisorConfig : hypervisorConfig , ProxyType : vc . KataProxyType , Console : consolePath , } , nil }
newTestRuntimeConfig creates a new RuntimeConfig
newTestRuntimeConfig creates a new RuntimeConfig