dsl

package
v0.0.0-...-d4a65ec Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DSL

type DSL struct {
	Validations []Validation `yaml:"validations" json:"validations"`
}

type TestCase

type TestCase struct {
	Name      string         `yaml:"name" json:"name"`
	Variables []TestVeriable `yaml:"variables" json:"variables"`
	Expected  bool           `yaml:"expected" json:"expected"`
}

type TestVeriable

type TestVeriable struct {
	Name  string      `yaml:"name" json:"name"`
	Value interface{} `yaml:"value" json:"value"`
}

type Validation

type Validation struct {
	ID        string     `yaml:"id" json:"id"`
	Cels      []string   `yaml:"cels" json:"cels"`
	Variables []Variable `yaml:"variables" json:"variables"`
	TestCases []TestCase `yaml:"testCases" json:"testCases"`
}

type Variable

type Variable struct {
	Name string `yaml:"name" json:"name"`
	Type string `yaml:"type" json:"type"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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