itest

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EOFReader

func EOFReader(data []byte) io.Reader

Types

type FilesMap

type FilesMap map[string][]byte

func (FilesMap) ProjectInto

func (fm FilesMap) ProjectInto(dir string) error

type Oneshot

type Oneshot struct {
	T          *testing.T
	Env        []string
	Args       []string
	Files      FilesMap
	Stdin      io.Reader
	Stdout     io.Writer
	Stderr     io.Writer
	WorkingDir string

	Cmd *exec.Cmd
	// contains filtered or unexported fields
}

func (*Oneshot) Cleanup

func (o *Oneshot) Cleanup()

func (*Oneshot) Signal

func (o *Oneshot) Signal(sig os.Signal)

func (*Oneshot) Start

func (o *Oneshot) Start()

func (*Oneshot) Wait

func (o *Oneshot) Wait()

type RetryClient

type RetryClient struct {
	Suite *suite.Suite
	// contains filtered or unexported fields
}

func (*RetryClient) Do

func (rc *RetryClient) Do(req *http.Request) (*http.Response, error)

func (*RetryClient) Get

func (rc *RetryClient) Get(url string) (*http.Response, error)

func (*RetryClient) Post

func (rc *RetryClient) Post(url, mime string, body io.Reader) (*http.Response, error)

type TestSuite

type TestSuite struct {
	suite.Suite
	TestDir string
}

func (*TestSuite) NewOneshot

func (suite *TestSuite) NewOneshot() *Oneshot

func (*TestSuite) SetupSuite

func (suite *TestSuite) SetupSuite()

func (*TestSuite) TearDownSuite

func (suite *TestSuite) TearDownSuite()

Jump to

Keyboard shortcuts

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