test

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL