cotton

package
v0.0.0-...-afd21db Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL        string
	Insecure       bool
	Verbose        bool
	Variables      []string
	StopWhenFailed bool
}

Config holds cotton configuration

type Cotton

type Cotton struct {
	Config
	// contains filtered or unexported fields
}

Cotton represents cotton.

func NewCotton

func NewCotton(path string, conf Config) (*Cotton, error)

NewCotton creates a new cotton. if path does not exist, error is returned.

func (*Cotton) Run

func (c *Cotton) Run() (testsuite.TestStat, int)

Run executes testsuites and return exit code

func (*Cotton) SetParser

func (c *Cotton) SetParser(p parser.Interface)

SetParser to set markdown parser

Jump to

Keyboard shortcuts

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