Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWriter ¶
func (*MockWriter) AssertEmpty ¶
func (writer *MockWriter) AssertEmpty() error
AssertEmpty makes sure that after testing, there's no more messages in the buffer.
func (*MockWriter) Pop ¶
func (writer *MockWriter) Pop() ([]byte, error)
Pop removes the first operation written and returns it back to the user.
func (*MockWriter) Write ¶
func (writer *MockWriter) Write(bytes []byte)
Write writes to the mock writer and stores it for later use.
Click to show internal directories.
Click to hide internal directories.