Documentation
¶
Overview ¶
Package fake implements fake versions of the C functions imported from the collectd daemon for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInterval ¶
SetInterval sets the interval returned by the fake plugin_get_interval() function.
func TearDown ¶
func TearDown()
TearDown cleans up after a test and prepares shared resources for the next test.
Note that this only resets the state of the fake implementations, such as "plugin_register_log()". The Go code in "collectd.org/plugin" may still hold a reference to the callback even after this function has been called.
Types ¶
type ReadCallback ¶
ReadCallback represents a data associated with a registered read callback.
func ReadCallbacks ¶
func ReadCallbacks() []ReadCallback
ReadCallbacks returns the data associated with all registered read callbacks.
Click to show internal directories.
Click to hide internal directories.