libvirttest

package
v0.0.0-...-2d13115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 101

Documentation

Overview

Package libvirttest provides a mock libvirt server for RPC testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLibvirt

type MockLibvirt struct {
	Test net.Conn
	Fail bool
	// contains filtered or unexported fields
}

MockLibvirt provides a mock libvirt server for testing.

func New

func New() *MockLibvirt

New creates a new mock Libvirt server.

func (*MockLibvirt) Dial

func (m *MockLibvirt) Dial() (net.Conn, error)

Dial creates a pipe to use for the server and client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL