imagefiltertest

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LandscapeImageFile  is the path to the sample image landscape
	LandscapeImageFile = "../images/lisbon-tram.jpg"
	// PortraitImageFile   is the path to the sample image portrait
	PortraitImageFile = "../images/big-ben.jpg"
	// PNGImageFile        is the path to the sample PNG image
	PNGImageFile = "../images/bag.png"
)

Variables

This section is empty.

Functions

func LandscapeImage

func LandscapeImage() *bimg.Image

LandscapeImage returns a landscape test image

func PNGImage

func PNGImage() *bimg.Image

PNGImage returns a PNG test image

func PortraitImage

func PortraitImage() *bimg.Image

PortraitImage returns a portrait test image

func TestCreate

func TestCreate(t *testing.T, spec func() filters.Spec, items []CreateTestItem)

TestCreate autonmatically creates a test for the CreateTestItem

Types

type CreateTestItem

type CreateTestItem struct {
	Msg  string
	Args []interface{}
	Err  bool
}

CreateTestItem is a utility to test arguments in eskip files

Jump to

Keyboard shortcuts

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