_test

package
v0.0.0-...-77ed03d Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package _test provides utilities for imageserver/image.Encoder testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkEncoder

func BenchmarkEncoder(b *testing.B, enc imageserver_image.Encoder, im *imageserver.Image, params imageserver.Params)

BenchmarkEncoder is a helper to benchmark imageserver/image.Encoder.

func NewImage

func NewImage() image.Image

NewImage creates a new test Image.

func TestEncoder

func TestEncoder(t *testing.T, enc imageserver_image.Encoder, expectedFormat string)

TestEncoder is a helper to test imageserver/image.Encoder.

func TestEncoderParams

func TestEncoderParams(t *testing.T, enc imageserver_image.Encoder, params imageserver.Params, expectedFormat string)

TestEncoderParams is a helper to test imageserver/image.Encoder with Params.

Types

This section is empty.

Jump to

Keyboard shortcuts

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