qmptest

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

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package qmptest provides types which assist in testing interactions with package qmp.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMonitor

func NewMonitor(runFunc RunFunc) qmp.Monitor

NewMonitor creates a qmp.Monitor that invokes runFunc whenever its Run method is called. All other methods are a no-op, and return nil.

Types

type RunFunc

type RunFunc func(cmd qmp.Command) (results interface{}, err error)

A RunFunc is a function invoked to process a qmp.Command. Any data returned by results is marshaled into JSON and returned to the caller.

Jump to

Keyboard shortcuts

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