format

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputPrinter

type OutputPrinter struct {
}

func NewOutputPrinter

func NewOutputPrinter(opts *OutputPrinterOptions) (ref *OutputPrinter, err error)

func (*OutputPrinter) ContextInfo

func (w *OutputPrinter) ContextInfo(name string, values ...string) string

func (*OutputPrinter) Cracked

func (w *OutputPrinter) Cracked(title string) string

func (*OutputPrinter) Failure

func (w *OutputPrinter) Failure(title string) string

func (*OutputPrinter) Heading

func (w *OutputPrinter) Heading(title string) string

func (*OutputPrinter) Printf

func (w *OutputPrinter) Printf(format string, args ...interface{}) (n int, err error)

func (*OutputPrinter) Println

func (w *OutputPrinter) Println(a ...interface{}) (n int, err error)

func (*OutputPrinter) Section

func (w *OutputPrinter) Section(block string) string

func (*OutputPrinter) SectionTitle

func (w *OutputPrinter) SectionTitle(title string) string

func (*OutputPrinter) Skipped

func (w *OutputPrinter) Skipped(title string) string

func (*OutputPrinter) Success

func (w *OutputPrinter) Success(title string) string

func (*OutputPrinter) TestCase

func (w *OutputPrinter) TestCase(title string) string

func (*OutputPrinter) TestSuiteTitle

func (w *OutputPrinter) TestSuiteTitle(filepath string) string

type OutputPrinterOptions

type OutputPrinterOptions struct{}

type Renderer

type Renderer func(a ...interface{}) string
var ContextNamePen Renderer
var HeadingPen, TestSuiteTitlePen, TestCaseTitlePen Renderer
var SectionTitlePen, SectionBodyPen Renderer
var SuccessPen, FailurePen, CrackedPen, SkippedPen Renderer

Jump to

Keyboard shortcuts

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