package
0.8.0
Repository: https://github.com/containrrr/shoutrrr.git
Documentation: pkg.go.dev

# Functions

CreateFailWriter returns a io.WriteCloser that returns an error after the amount of writes indicated by writeLimit.
CreateTextConFaker returns a textproto.Conn to fake textproto based connections.
JSONRespondMust creates a httpmock.Responder with the given response as the body, and fails the test if it cannot be created.
TestConfigGetEnumsCount tests whether the config.Enums returns the expected amount of items.
TestConfigGetFieldsCount tests whether the config.QueryFields return the expected amount of fields.
TestConfigGetInvalidQueryValue tests whether the config returns an error when an invalid query value is requested.
TestConfigSetDefaultValues tests whether setting the default values can be set for an empty config without any errors.
TestConfigSetInvalidQueryValue tests whether the config returns an error when a URL with an invalid query value is parsed.
TestLogger returns a log.Logger that writes to ginkgo.GinkgoWriter for use in tests.
TestServiceSetInvalidParamValue tests whether the service returns an error when an invalid param key/value is passed through Send.
URLMust creates a url.URL from the given rawURL and fails the test if it cannot be parsed.

# Interfaces

Eavesdropper is an interface that provides a way to get a summarized output of a connection RX and TX.
MockClientService is used to allow mocking the HTTP client when testing.