clisuite

package
v0.13.158 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package clisuite to test CLI commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestSuite

type TestSuite struct {
	suite.Suite

	Folder string
	Ctl    *cli.Cli
	// Out is the outpub buffer
	Out bytes.Buffer
}

TestSuite provides suite for testing HTTP

func (*TestSuite) EqualOut

func (s *TestSuite) EqualOut(text string)

EqualOut is a helper method to assert that the out stream contains the supplied

func (*TestSuite) HasNoText

func (s *TestSuite) HasNoText(texts ...string)

HasNoText is a helper method to assert that the out stream does contains the supplied text somewhere

func (*TestSuite) HasText

func (s *TestSuite) HasText(texts ...string)

HasText is a helper method to assert that the out stream contains the supplied text somewhere

func (*TestSuite) SetupSuite

func (s *TestSuite) SetupSuite()

SetupSuite called once to setup

func (*TestSuite) SetupTest

func (s *TestSuite) SetupTest()

SetupTest called before each test

func (*TestSuite) TearDownSuite

func (s *TestSuite) TearDownSuite()

TearDownSuite called once to destroy

func (*TestSuite) TearDownTest

func (s *TestSuite) TearDownTest()

TearDownTest called after each test

Jump to

Keyboard shortcuts

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