edwood: github.com/rjkroege/edwood/internal/edwoodtest Index | Files

package edwoodtest

import "github.com/rjkroege/edwood/internal/edwoodtest"

Package edwoodtest contains utility functions that help with testing Edwood.

Index

Package Files

draw.go

func NewDisplay Uses

func NewDisplay() draw.Display

NewDisplay returns a mock draw.Display.

func NewFont Uses

func NewFont(width, height int) draw.Font

NewFont returns a draw.Font that mocks a fixed-width font.

func NewImage Uses

func NewImage(r image.Rectangle) draw.Image

NewImage returns a mock draw.Image with the given bounds.

Package edwoodtest imports 5 packages (graph). Updated 2019-12-31. Refresh now. Tools for package owners.