Documentation ¶
Index ¶
- type Suite
- func (s *Suite) HasFile(file string)
- func (s *Suite) HasNoText(texts ...string)
- func (s *Suite) HasText(texts ...string)
- func (s *Suite) HasTextInFile(file string, texts ...string)
- func (s *Suite) Output() string
- func (s *Suite) Run(action ctl.ControlAction, p interface{}) error
- func (s *Suite) SetupSuite()
- func (s *Suite) TearDownSuite()
- func (s *Suite) WithAppFlags(appFlags []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Suite ¶
type Suite struct { suite.Suite // Out is the outpub buffer Out bytes.Buffer // Cli is the current CLI Cli *cli.Cli // contains filtered or unexported fields }
Suite defines helper test suite
func (*Suite) HasNoText ¶
HasNoText is a helper method to assert that the out stream does contains the supplied text somewhere
func (*Suite) HasText ¶
HasText is a helper method to assert that the out stream contains the supplied text somewhere
func (*Suite) HasTextInFile ¶
HasTextInFile is a helper method to assert that file contains the supplied text
func (*Suite) Run ¶
func (s *Suite) Run(action ctl.ControlAction, p interface{}) error
Run is a helper to run a CLI commnd
func (*Suite) WithAppFlags ¶
WithAppFlags specifies application flags, default: -V -d
Click to show internal directories.
Click to hide internal directories.