Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Differ ¶
func NewExecDiffer ¶
func NewExecDiffer() Differ
type DifferExec ¶
type DifferExec struct {
}
type ReplaceStdContent ¶ added in v1.5.3
type SnapshotData ¶
type SnapshotSuite ¶
type SnapshotSuite struct {
Name string `yaml:"name,omitempty"`
Command string `yaml:"command,omitempty"`
ConfigFileName string `yaml:"config_file_name,omitempty"`
Config string `yaml:"config_content,omitempty"`
InitSnapshot []SnapshotData `yaml:"init_snapshot,omitempty"`
ExpectedSnapshot []SnapshotData `yaml:"expected_snapshot,omitempty"`
ExpectedStdOut string `yaml:"expected_stdout,omitempty"`
ExpectedStdErr string `yaml:"expected_stderr,omitempty"`
ReplaceStdOutContent []ReplaceStdContent `yaml:"replace_stdout_content,omitempty"`
ReplaceStdErrContent []ReplaceStdContent `yaml:"replace_stderr_content,omitempty"`
}
func GetYmlSnapshotSuites ¶
func GetYmlSnapshotSuites(folder string) ([]*SnapshotSuite, error)
GetYmlSnapshotSuites returns list of snapshot suite from yml files
func (*SnapshotSuite) CrateConfig ¶
func (s *SnapshotSuite) CrateConfig(dir string) error
func (*SnapshotSuite) CreateSnapshotData ¶
func (s *SnapshotSuite) CreateSnapshotData(snapshotData []SnapshotData, dir string) error
CreateSnapshotData creates filesystem data from the given snapshotData. For example, SnapshotData struct descrive the filesystem structure └── /folder
├── settings/ │ ├── billing-svc │ └── all/ │ ├── foo └── bar
Click to show internal directories.
Click to hide internal directories.