package writer
import "github.com/onsi/ginkgo/internal/writer"
Index ¶
- type FakeGinkgoWriter
- func NewFake() *FakeGinkgoWriter
- func (writer *FakeGinkgoWriter) AddEvent(event string)
- func (writer *FakeGinkgoWriter) Bytes() []byte
- func (writer *FakeGinkgoWriter) DumpOut()
- func (writer *FakeGinkgoWriter) DumpOutWithHeader(header string)
- func (writer *FakeGinkgoWriter) Truncate()
- func (writer *FakeGinkgoWriter) Write(data []byte) (n int, err error)
- type Writer
- func New(outWriter io.Writer) *Writer
- func (w *Writer) AndRedirectTo(writer io.Writer)
- func (w *Writer) Bytes() []byte
- func (w *Writer) DumpOut()
- func (w *Writer) DumpOutWithHeader(header string)
- func (w *Writer) SetStream(stream bool)
- func (w *Writer) Truncate()
- func (w *Writer) Write(b []byte) (n int, err error)
- type WriterInterface
Types ¶
type FakeGinkgoWriter ¶
type FakeGinkgoWriter struct { EventStream []string }
func NewFake ¶
func NewFake() *FakeGinkgoWriter
func (*FakeGinkgoWriter) AddEvent ¶
func (writer *FakeGinkgoWriter) AddEvent(event string)
func (*FakeGinkgoWriter) Bytes ¶
func (writer *FakeGinkgoWriter) Bytes() []byte
func (*FakeGinkgoWriter) DumpOut ¶
func (writer *FakeGinkgoWriter) DumpOut()
func (*FakeGinkgoWriter) DumpOutWithHeader ¶
func (writer *FakeGinkgoWriter) DumpOutWithHeader(header string)
func (*FakeGinkgoWriter) Truncate ¶
func (writer *FakeGinkgoWriter) Truncate()
func (*FakeGinkgoWriter) Write ¶
func (writer *FakeGinkgoWriter) Write(data []byte) (n int, err error)
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func New ¶
func (*Writer) AndRedirectTo ¶
func (*Writer) Bytes ¶
func (*Writer) DumpOut ¶
func (w *Writer) DumpOut()
func (*Writer) DumpOutWithHeader ¶
func (*Writer) SetStream ¶
func (*Writer) Truncate ¶
func (w *Writer) Truncate()
func (*Writer) Write ¶
type WriterInterface ¶
type WriterInterface interface { io.Writer Truncate() DumpOut() DumpOutWithHeader(header string) Bytes() []byte }
Source Files ¶
- Version
- v1.16.5 (latest)
- Published
- Oct 11, 2021
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 3 weeks ago –
Tools for package owners.