Documentation ¶
Overview ¶
Package test provides implementations leveraged within unit tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RepresentationBuilderFunc = func(ctx _representation.BuilderContext) representation.Representation { r := Representation{} r.SetContentType(ctx.ContentType) r.SetContentLanguage(ctx.ContentLanguage) r.SetContentCharset(ctx.ContentCharset) r.SetContentEncoding(ctx.ContentEncoding) r.SetContentLocation(ctx.ContentLocation) r.SetContentFeatures(ctx.ContentFeatures) r.SetSourceQuality(ctx.SourceQuality) return r } )
Functions ¶
This section is empty.
Types ¶
type Representation ¶
type Representation struct { representation.Base A string B int }
Representation represents a representation to utilize in unit tests.
func (Representation) Bytes ¶
func (r Representation) Bytes() ([]byte, error)
Bytes serializes the test representation.
func (Representation) FromBytes ¶
func (r Representation) FromBytes(b []byte) error
FromBytes deserializes the test representation.
Click to show internal directories.
Click to hide internal directories.