types

package
v0.0.0-...-dd9ff49 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CukeComment

type CukeComment struct {
	Value string `json:"value"`
	Line  int    `json:"line"`
}

type CukeDataTableRow

type CukeDataTableRow struct {
	Cells []string `json:"cells"`
}

type CukeDocstring

type CukeDocstring struct {
	Value       string `json:"value"`
	ContentType string `json:"content_type"`
	Line        int    `json:"line"`
}

type CukeElement

type CukeElement struct {
	ID          string     `json:"id"`
	Keyword     string     `json:"keyword"`
	Name        string     `json:"name"`
	Description string     `json:"description"`
	Line        int        `json:"line"`
	Type        string     `json:"type"`
	Tags        []CukeTag  `json:"tags,omitempty"`
	Steps       []CukeStep `json:"steps,omitempty"`
}

type CukeFeatureJSON

type CukeFeatureJSON struct {
	URI         string        `json:"uri"`
	ID          string        `json:"id"`
	Keyword     string        `json:"keyword"`
	Name        string        `json:"name"`
	Description string        `json:"description"`
	Line        int           `json:"line"`
	Comments    []CukeComment `json:"comments,omitempty"`
	Tags        []CukeTag     `json:"tags,omitempty"`
	Elements    []CukeElement `json:"elements,omitempty"`
}

CukeFeatureJSON ...

type CukeMatch

type CukeMatch struct {
	Location string `json:"location"`
}

type CukeResult

type CukeResult struct {
	Status   string `json:"status"`
	Error    string `json:"error_message,omitempty"`
	Duration *int   `json:"duration,omitempty"`
}

type CukeStep

type CukeStep struct {
	Keyword   string              `json:"keyword"`
	Name      string              `json:"name"`
	Line      int                 `json:"line"`
	Docstring *CukeDocstring      `json:"doc_string,omitempty"`
	Match     CukeMatch           `json:"match"`
	Result    CukeResult          `json:"result"`
	DataTable []*CukeDataTableRow `json:"rows,omitempty"`
}

type CukeTag

type CukeTag struct {
	Name string `json:"name"`
	Line int    `json:"line"`
}

type FailedScenario

type FailedScenario struct {
	Name       string `json:"name"`
	FailedStep string `json:"failedStep"`
	Line       string `json:"line"`
	Error      string `json:"error"`
}

type Results

type Results struct {
	Total            int64
	Passed           int64
	Failed           int64
	Skipped          int64
	Undefined        int64
	Pending          int64
	Variants         []string
	ResultsByVariant []VariantResults
}

type Variant

type Variant string
const (
	SotwNonAggregated        Variant = "sotw non-aggregated"
	SotwAggregated           Variant = "sotw aggregated"
	IncrementalNonAggregated Variant = "incremental non-aggregated"
	IncrementalAggregated    Variant = "incremental aggregated"
)

type VariantResults

type VariantResults struct {
	Name            string           `json:"name"`
	Total           int              `json:"total"`
	Passed          int              `json:"passed"`
	Failed          int              `json:"failed"`
	Skipped         int              `json:"skipped"`
	Undefined       int              `json:"undefined"`
	Pending         int              `json:"pending"`
	FailedScenarios []FailedScenario `json:"failedScenarios"`
}

Jump to

Keyboard shortcuts

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