transform

package
v0.443.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalFileWithParam

func EvalFileWithParam(fs afero.Fs, scriptPath string, param rel.Value) (rel.Value, error)

EvalFileWithParam returns the result of evaluating the function in the specified file, passing in the specified parameter.

func EvalWithParam

func EvalWithParam(script string, param rel.Value) (rel.Value, error)

EvalWithParam returns the result of evaluating the function in the specified string, passing in the specified parameter.

func ExprFileWithParam

func ExprFileWithParam(fs afero.Fs, scriptPath string, param rel.Value) (rel.Expr, error)

ExprFileWithParam returns the unevaluated expression of the function in the specified file after the specified parameter was applied to it.

func ExprWithParam

func ExprWithParam(script string, scriptPath string, param rel.Value) (rel.Expr, error)

ExprWithParam returns the unevaluated expression of the function in the specified string after the specified parameter was applied to it.

func RunTests

func RunTests(testScript string, testScriptPath string, param rel.Value) (test.File, error)

RunTests runs the test function in the specified string, passing in the specified param, and returns a populated test.File with the results.

Types

This section is empty.

Jump to

Keyboard shortcuts

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