Documentation ¶
Index ¶
- func ClearImg(img draw.Image)
- func ClearImg2(img draw.Image, c color.Color)
- func CollectLog(t *testing.T, fn func() error) ([]byte, []byte, error)
- func CompareImgs(img1, img2 image.Image) error
- func CompareImgsOrSavePng(img1 image.Image, filename2 string) error
- func DrawPoint(img draw.Image, p image.Point, size int, c color.Color)
- func GenerateImg(r image.Rectangle, seed int) image.Image
- func OpenImage(filename string) (image.Image, string, error)
- func RunArchive(t *testing.T, ar *Archive, filesExts []string, ...)
- func RunArchive2(t *testing.T, ar *Archive, ...)
- func SPrintImg(img image.Image) string
- func SPrintImgs(imgs ...image.Image) string
- func SourceCursor(cursorStr, src string, n int) (string, int, error)
- type Archive
- type Script
- type ScriptCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareImgs ¶
func RunArchive ¶
func RunArchive(t *testing.T, ar *Archive, filesExts []string, fn func(t2 *testing.T, name string, datas [][]byte) error, )
Expects n files named in filesExts args
func RunArchive2 ¶
func SPrintImgs ¶
Types ¶
type Archive ¶
type Archive struct { Tar *txtar.Archive Filename string // for errors Lines []int // Tar.Files[] line position in src }
func ParseTxtar ¶
type Script ¶
type Script struct { ScriptsDir string Args []string Cmds []*ScriptCmd // user cmds (provided) Work bool // don't remove work dir at end ScriptStart func(*testing.T) error // each script init ScriptStop func(*testing.T) error // each script close // contains filtered or unexported fields }
based on txtar (txt archive)
Click to show internal directories.
Click to hide internal directories.