# Functions
Contains returns a CommandMatcher that checks if a command contains a given substring.
Equal returns a CommandMatcher that checks if a command equals a given string.
HasPrefix returns a CommandMatcher that checks if a command starts with a given prefix.
HasSuffix returns a CommandMatcher that checks if a command ends with a given suffix.
Match returns a CommandMatcher that checks if a command matches a given regular expression.
NewMockConnection creates a new mock connection.
NewMockRunner creates a new mock runner.
NewMockStarter creates a new mock starter.
Not returns a CommandMatcher that negates the result of the given match function.
NotReceivedContains asserts that a command with the given substring was not received.
NotReceivedEqual asserts that a command was not received.
NotReceivedMatch asserts that a command with the given regular expression was not received.
NotReceivedWithPrefix asserts that a command with the given prefix was not received.
NotReceivedWithSuffix asserts that a command with the given suffix was not received.
ReceivedContains asserts that a command with the given substring was received.
ReceivedEqual asserts that a command was received.
ReceivedMatch asserts that a command with the given regular expression was received.
ReceivedWithPrefix asserts that a command with the given prefix was received.
ReceivedWithSuffix asserts that a command with the given suffix was received.
Trace allows running a function with trace logging enabled.
TraceOff sets the trace logger to null.
TraceToStderr sets the trace logger to log to stderr.
# Structs
A is the struct passed to the command handling functions.
MockConnection is a mock client.
MockLogger is a mock logger.
MockLogMessage is a mock log message.
MockRunner runs commands on a mock connection.
MockStarter is a mock process starter.
MockWaiter is a mock process waiter.
# Type aliases
CommandHandler is a function that handles a mocked command.
CommandMatcher is a function that checks if a command matches a certain criteria.