test

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ts, _ = time.Parse("2006-01-02 15:04:05", "2013-12-30 18:36:00")

Functions

func ClearDir

func ClearDir(path ...string) error

func CopyFile

func CopyFile(src, dst string) error

func DrainBoolChan

func DrainBoolChan(c chan bool)

func DrainDataChan

func DrainDataChan(c chan []byte)

func DrainLogChan

func DrainLogChan(c chan proto.LogEntry)

func DrainRecvChan

func DrainRecvChan(c chan *proto.Reply)

func DrainRecvData

func DrainRecvData(c chan interface{})

func DrainSendChan

func DrainSendChan(c chan *proto.Cmd)

func DrainTraceChan

func DrainTraceChan(c chan string) []string

func FileExists

func FileExists(file string) bool

func GetStatus

func GetStatus(sendChan chan *proto.Cmd, recvChan chan *proto.Reply) map[string]string

func LoadReport

func LoadReport(file string, v interface{}, got interface{}) error

func WaitBytes

func WaitBytes(dataChan chan []byte) [][]byte

func WaitCmd

func WaitCmd(replyChan chan *proto.Cmd) []proto.Cmd

func WaitData

func WaitData(recvDataChan chan interface{}) []interface{}

func WaitErr

func WaitErr(errChan chan error) []error

func WaitFiles

func WaitFiles(dir string, n int) []os.FileInfo

func WaitLog

func WaitLog(recvDataChan chan interface{}, want int) []proto.LogEntry

func WaitReply

func WaitReply(replyChan chan *proto.Reply) []proto.Reply

func WaitReplyCmd added in v1.5.0

func WaitReplyCmd(replyChan chan *proto.Reply, replyCmd string) []proto.Reply

func WaitState

func WaitState(c chan bool) bool

func WaitStatus

func WaitStatus(timeout int, r pct.StatusReporter, proc string, state string) bool

func WaitStatusPrefix

func WaitStatusPrefix(timeout int, r pct.StatusReporter, proc string, state string) bool

func WaitStatusReply

func WaitStatusReply(replyChan chan *proto.Reply) map[string]string

func WaitTrace

func WaitTrace(traceChan chan string) []string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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