testutils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomID added in v0.6.0

func RandomID() core.RecordID

RandomID generates random object ID

func RandomRef

func RandomRef() core.RecordRef

RandomRef generates random object reference

func RandomString added in v0.3.0

func RandomString() string

RandomString generates random uuid and return it as a string

func StartInsgorund added in v0.4.0

func StartInsgorund(cmdPath, lProto, listen, upstreamProto, upstreamAddr string) (func(), error)

StartInsgorund starts `insgorund` process

Types

type Recorder added in v0.6.1

type Recorder struct {
	// contains filtered or unexported fields
}

Recorder records input data line by line in underline list.

func NewRecoder added in v0.6.1

func NewRecoder() *Recorder

NewRecoder produces new Recorder instance.

func (*Recorder) Add added in v0.6.1

func (rec *Recorder) Add(s string)

Add appends string to Recorder.

func (*Recorder) Items added in v0.6.1

func (rec *Recorder) Items() []string

Items returns Recorder's underlying array.

func (*Recorder) String added in v0.6.1

func (rec *Recorder) String() string

String stringifies recorder content.

func (*Recorder) StringMultiline added in v0.6.1

func (rec *Recorder) StringMultiline() string

StringMultiline stringifies recorder content in multiple lines.

func (*Recorder) Write added in v0.6.1

func (rec *Recorder) Write(p []byte) (int, error)

Write implements io.Write interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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