harness

package
v0.0.0-...-0690ca1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

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

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

func ValidateCase

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

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

Types

type StagingCallback

type StagingCallback func(gs *goldsmith.Goldsmith)

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

Jump to

Keyboard shortcuts

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