taskcluster-worker: github.com/taskcluster/taskcluster-worker/config/configtest Index | Files

package configtest

import "github.com/taskcluster/taskcluster-worker/config/configtest"

Package configtest provides structs and logic for declarative configuration tests.


Package Files


type Case Uses

type Case struct {
    Transform string
    Input     map[string]interface{}
    Result    map[string]interface{}

Case allows declaration of a transformation to run on input and validate against declared tesult.

func (Case) Test Uses

func (c Case) Test(t *testing.T)

Test will execute the test case panicing if Input doesn't become Result

Package configtest imports 4 packages (graph) and is imported by 1 packages. Updated 2017-05-23. Refresh now. Tools for package owners.