test

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootDir string

Functions

func CopyFile

func CopyFile(src, dst string) error

func DrainCmdChan

func DrainCmdChan(c chan *proto.Cmd)

func Dump

func Dump(v interface{})

func ExecQueries

func ExecQueries(db *sql.DB, queries []string, t *check.C)

func FileExists

func FileExists(file string) bool

func PrepStmtCount

func PrepStmtCount(db *sql.DB) uint

func TableDiff

func TableDiff(db *sql.DB, table, orderBy, expectFile string) string

func WaitDbRow

func WaitDbRow(db *sql.DB, table string, where string, n int) bool

n = 0 -> true only when table is empty n >= 1 -> true when current number of rows is greater or equal n

func WaitRecv

func WaitRecv(recvChan chan []byte, v interface{}) error

func WaitResp

func WaitResp(recvChan chan []byte) *proto.Response

Types

type Client

type Client struct {
	Headers map[string]string
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Get

func (c *Client) Get(url string) (*http.Response, []byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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