Documentation ¶
Index ¶
- Variables
- func Grep(r io.Reader, substr string) (bool, *bytes.Buffer)
- func GrepAndNot(r io.Reader, substr, noSubstr string)
- func GrepTrue(r io.Reader, substr string)
- type IntegrationSuite
- func (suite *IntegrationSuite) ResetDB()
- func (suite *IntegrationSuite) RunCli(cmd string, args ...string) io.Reader
- func (suite *IntegrationSuite) StartDummy(args ...string) io.Reader
- func (suite *IntegrationSuite) StartServe(args ...string) (io.Reader, io.WriteCloser)
- func (suite *IntegrationSuite) StoppableCtx()
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdTimeout = time.Minute
CmdTimeout defines timeout for a command
View Source
var GrepTimeout = time.Minute
GrepTimeout defines timeout grep is waiting for substring
Functions ¶
func Grep ¶
Grep reads from reader until finds substring with timeout return result and content that was read
func GrepAndNot ¶
GrepAndNot reads from reader until finds substring with timeout and checks noSubstr was read or fails printing read lines
Types ¶
type IntegrationSuite ¶ added in v0.1.3
func (*IntegrationSuite) ResetDB ¶ added in v0.1.3
func (suite *IntegrationSuite) ResetDB()
ResetDB recreates database for the test
func (*IntegrationSuite) RunCli ¶ added in v0.1.3
func (suite *IntegrationSuite) RunCli(cmd string, args ...string) io.Reader
RunCli runs lookout subcommand (not a server)
func (*IntegrationSuite) StartDummy ¶ added in v0.1.3
func (suite *IntegrationSuite) StartDummy(args ...string) io.Reader
StartDummy starts dummy analyzer with context and optional arguments
func (*IntegrationSuite) StartServe ¶ added in v0.1.3
func (suite *IntegrationSuite) StartServe(args ...string) (io.Reader, io.WriteCloser)
StartServe starts lookout server with context and optional arguments
func (*IntegrationSuite) StoppableCtx ¶ added in v0.1.3
func (suite *IntegrationSuite) StoppableCtx()
StoppableCtx return ctx and stop function
Click to show internal directories.
Click to hide internal directories.