Documentation ¶
Overview ¶
Package gmondtest provides test helpers for gmond.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Harness ¶
type Harness struct { Client *gmetric.Client StopTimeout time.Duration // contains filtered or unexported fields }
The Harness provides an unique instance of gmond suitable for use in testing. Use NewHarness to create a Harness and start the gmond server, and ensure you 'defer h.Stop()' to shutdown the gmond server once the test has finished.
func NewHarness ¶
NewHarness creates a new Harness. It will start the server and initialize the container Client.
func (*Harness) ContainsMetric ¶
ContainsMetric checks if associated gmond instance contains the given metric.
Click to show internal directories.
Click to hide internal directories.