Documentation ¶
Overview ¶
Package testresource contains utilities for testing with resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteOutput ¶
ByteOutput is a resource output that writes to a byte buffer.
func (*ByteOutput) New ¶
func (o *ByteOutput) New(p *ir.PatientInfo) (io.WriteCloser, error)
New returns the ByteWriteCloser.
type Writer ¶
type Writer struct { Resources []*ir.PatientInfo // contains filtered or unexported fields }
Writer is a resource writer that exposes the resources it has written to be retrieved by tests.
func NewWriter ¶
func NewWriter() *Writer
NewWriter initialises gob encoders and returns a new TestWriter.
Click to show internal directories.
Click to hide internal directories.