Package qmptest provides types which assist in testing interactions with package qmp.
NewMonitor creates a qmp.Monitor that invokes runFunc whenever its Run method is called. All other methods are a no-op, and return nil.
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.