goldsmith-components: github.com/FooSoft/goldsmith-components/harness Index | Files

package harness

import "github.com/FooSoft/goldsmith-components/harness"

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

Package Files

harness.go

func Validate Uses

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

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

func ValidateCase Uses

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 Uses

type Stager func(gs *goldsmith.Goldsmith)

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

Package harness imports 9 packages (graph). Updated 2019-04-08. Refresh now. Tools for package owners.