clisuite

package
v0.24.132 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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