go-swagger: github.com/go-swagger/go-swagger/cmd/swagger/commands/internal/cmdtest Index | Files

package cmdtest

import "github.com/go-swagger/go-swagger/cmd/swagger/commands/internal/cmdtest"

Package cmdtest provides test utilities to assert the output of CLI commands

Index

Package Files

output.go

func AssertReadersContent Uses

func AssertReadersContent(t testing.TB, noBlanks bool, expected, actual io.Reader) bool

AssertReadersContent compares the contents from io.Readers, optionally stripping blanks

func CatchStdOut Uses

func CatchStdOut(t testing.TB, runnable func() error) ([]byte, error)

CatchStdOut captures the standard output from a runnable function. You shouln't run this in parallel.

Package cmdtest imports 7 packages (graph). Updated 2020-07-16. Refresh now. Tools for package owners.