Back to godoc.org

Package harness

v0.0.0-...-42a2ac9
Latest Go to latest

The latest major version is .

Published: Aug 14, 2020 | License: MIT | Module: github.com/FooSoft/goldsmith-components

Overview

Package harness provides a simple way to test goldsmith plugins and filters. It executes a goldsmith chain on provided "source" data and compares the generated "target" resuts with the known to be good "reference" data.

Index

func Validate

func Validate(t *testing.T, stager Stager)

Validate enables validation of a single, unnamed case (test data is stored in "testdata").

func ValidateCase

func ValidateCase(t *testing.T, caseName string, stager Stager)

ValidateCase enables enables of a single, named case (test data is stored in "testdata/caseName").

type Stager

type Stager func(gs *goldsmith.Goldsmith)

Stager callback function is used to set up a goldsmith chain.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier