package
1.36.2
Repository: https://github.com/onsi/gomega.git
Documentation: pkg.go.dev

# Functions

BufferReader returns a new gbytes.Buffer that wraps a reader.
BufferWithBytes returns a new gbytes.Buffer seeded with the passed in bytes */.
NewBuffer returns a new gbytes.Buffer */.
Say is a Gomega matcher that operates on gbytes.Buffers: Expect(buffer).Should(Say("something")) will succeed if the unread portion of the buffer matches the regular expression "something".
TimeoutCloser returns an io.Closer that wraps the passed-in io.Closer.
TimeoutReader returns an io.Reader that wraps the passed-in io.Reader.
TimeoutWriter returns an io.Writer that wraps the passed-in io.Writer.

# Variables

ErrTimeout is returned by TimeoutCloser, TimeoutReader, and TimeoutWriter when the underlying Closer/Reader/Writer does not return within the specified timeout.

# Structs

gbytes.Buffer implements an io.Writer and can be used with the gbytes.Say matcher.

# Interfaces

Objects satisfying the BufferProvider can be used with the Say matcher.