Documentation ¶
Overview ¶
Package mock provides implementations for mocking objects and endpoints for unit testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMirrorRoundTripper ¶
func NewMirrorRoundTripper() http.RoundTripper
NewMirrorRoundTripper returns an http.RoundTripper that mirrors the request body in the response body.
func NewSession ¶
NewSession provides a *discordgo.Session instance to be used in unit testing with pre-populated initial state.
Types ¶
type Logger ¶
Logger is a mock logger to suppress printing any actual log messages.
func (*Logger) DiscordGoLogf ¶
DiscordGoLogf is a mock stub of the *logging.Logger DiscordGoLogf method.
func (*Logger) UpdateDiscordrus ¶
func (*Logger) UpdateDiscordrus()
UpdateDiscordrus is a mock stub of the *logging.Logger UpdateDiscordrus method.
func (*Logger) UpdateLevel ¶
UpdateLevel is a mock stub of the *logging.Logger UpdateLevel method.
func (*Logger) WrappedLogger ¶
WrappedLogger returns the wrapped *logrus.Logger instance.