Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMemTableSize = 8 * (1 << 20) // 8MB
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientTestSuite ¶
type ClientTestSuite struct { suite.Suite TempDir string DBDir string DBDir2 string ExitStatus int // contains filtered or unexported fields }
func (*ClientTestSuite) MustRun ¶
func (suite *ClientTestSuite) MustRun(m func(), args []string) (stdout string, stderr string)
MustRun is a wrapper around Run that will panic on Exit or Panic
func (*ClientTestSuite) Run ¶
func (suite *ClientTestSuite) Run(m func(), args []string) (stdout string, stderr string, recoveredErr interface{})
Run will execute a function passing to it commandline args, and captures stdout,stderr. If m() panics the panic is caught, and returned with recoveredError If m() calls exit.Exit() m() will panic and return ExitError with recoveredError
func (*ClientTestSuite) SetupSuite ¶
func (suite *ClientTestSuite) SetupSuite()
func (*ClientTestSuite) TearDownSuite ¶
func (suite *ClientTestSuite) TearDownSuite()
Click to show internal directories.
Click to hide internal directories.