Discover Packages
github.com/aimof/apitest
parser
yamlparser
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Apr 29, 2019
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Given struct {
Host string `yaml:"host"`
}
type Scenario struct {
Name string `yaml:"Scenario"`
Description string `yaml:"description"`
Given Given `yaml:"Given"`
Tests []Test `yaml:"Tests"`
}
type Test struct {
When When `yaml:"When"`
Then Then `yaml:"Then"`
}
type Tests struct {
Feature string `yaml:"Feature"`
Scenarios []Scenario `yaml:"Scenarios"`
}
type Then struct {
Status int `yaml:"status"`
Format string `yaml:"format"`
Require []string `yaml:"require"`
Retry bool `yaml:"retry"`
}
type When struct {
Host string `yaml:"host"`
Path string `yaml:"path"`
Method string `yaml:"method"`
Body string `yaml:"body"`
}
type YamlParser struct {
Tests Tests
}
YamlParser .
Source Files
¶
Click to show internal directories.
Click to hide internal directories.