sailfoot

package
v0.0.0-...-e3a65fc Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitLine

func SplitLine(line string) []string

Types

type Case

type Case struct {
	Driver        driver.TestDriver
	RootKeyword   *Keyword
	KnownKeywords map[string]*Keyword
}

func NewCase

func NewCase(d driver.TestDriver) *Case

func (*Case) Listen

func (c *Case) Listen(port int)

func (*Case) Load

func (c *Case) Load(filename string)

func (*Case) Run

func (c *Case) Run()

func (*Case) StartServer

func (c *Case) StartServer(port int)

type Keyword

type Keyword struct {
	Commands      [][]string
	LabelLocation map[string]int
	Variables     map[string]string
	IsATest       bool
	Passed        bool
	TestCaseName  string
	LastResult    bool
	Ran           bool
	SkipFail      bool
}

func (*Keyword) Init

func (k *Keyword) Init()

func (*Keyword) Run

func (k *Keyword) Run(driver driver.TestDriver, knownCommands map[string]*Keyword, args []string) bool

type Response

type Response struct {
	Result bool
	Reason string `json:"reason,omitempty"`
}

Jump to

Keyboard shortcuts

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