Versions in this module Expand all Collapse all v0 v0.0.0 Aug 1, 2022 Changes in this version + var DEFAULT_TESTDATA_DIRS = []string + var DefaultSyntaxOpts = CueSyntaxOptions + func AttrToMap(A cue.Attribute) (m map[string]string) + func CueErrorToString(err error) string + func CueSyntax(val cue.Value, opts []cue.Option) ast.Node + func ExpandCueError(err error) error + func FindModuleAbsPath() (string, error) + func FormatCue(val cue.Value) (string, error) + func FormatOutput(val cue.Value, format string) (string, error) + func PrintAttr(attr cue.Attribute, val cue.Value) error + func PrintCue(val cue.Value) (string, error) + func PrintCueError(err error) + func PrintCueValue(val cue.Value) (string, error) + func RunDefFromArgs(args []string) error + func RunEvalFromArgs(args []string) error + func RunExportFromArgs(args []string) error + func RunTrimFromArgs(args []string) error + func RunVetFromArgs(args []string) error + func ValueToSyntaxString(val cue.Value, opts ...cue.Option) (string, error) + type CueRuntime struct + BuildInstances []*build.Instance + CueConfig *load.Config + CueContext *cue.Context + CueErrors []error + CueInstance *cue.Instance + CueValue cue.Value + Entrypoints []string + FS billy.Filesystem + FieldOpts []cue.Option + Value interface{} + Workspace string + func CueRuntimeFromEntrypoints(entrypoints []string) (crt *CueRuntime, err error) + func CueRuntimeFromEntrypointsAndFlags(entrypoints []string) (crt *CueRuntime, err error) + func (CR *CueRuntime) PrintCueErrors() + func (CRT *CueRuntime) ConvertToValue(in interface{}) (cue.Value, error) + func (CRT *CueRuntime) Load() (err error) + func (CRT *CueRuntime) ParseCueExpr(expr string) (cue.Value, error) + func (CRT *CueRuntime) PrintValue() error + type CueSyntaxOptions struct + Attributes bool + Concrete bool + Definitions bool + Docs bool + Hidden bool + Optional bool + func (CSO CueSyntaxOptions) MakeOpts() []cue.Option + type KeyVal struct + Key string + Val cue.Value + func GetByAttrKeys(val cue.Value, attr string, all, any []string) ([]KeyVal, error) + type TestOpFunc func(name string, args cue.Value) (cue.Value, error) + type TestSuite struct + CRT *CueRuntime + Entrypoints []string + Op TestOpFunc + TestdataDirs []string + func NewTestSuite(testdirs []string, op TestOpFunc) *TestSuite + func (TS *TestSuite) DoTestOp(name string, args cue.Value) (cue.Value, error) + func (TS *TestSuite) RunCase(path string) (err error) + func (TS *TestSuite) RunCases(paths []string) (err error) + func (TS *TestSuite) RunGroup(cases, group string, V cue.Value) (err error) + func (TS *TestSuite) RunTestCase(cases, group, test string, V cue.Value) (err error) + func (TS *TestSuite) SetupCue() (err error) + func (TS *TestSuite) SetupEntrypoints() (err error)