Package mcabber facilitates integration testing against Mcabber.
func ConfigFile ¶
ConfigFile is an option that can be used to write a temporary config file. This will overwrite the existing config file and make most of the other options in this package noops. This option only exists for the rare occasion that you need complete control over the config file.
Ping sends an XMPP ping through Mcabber.
Send transmits the given command over the control pipe.
Test starts a Mcabber instance and returns a function that runs subtests using t.Run. Multiple calls to the returned function will result in uniquely named subtests. When all subtests have completed, the daemon is stopped.