Documentation ¶
Index ¶
- Variables
- type DuplicateError
- type HTMLGennerate
- type JunitFormater
- type ReportActionError
- type Reporter
- func (r *Reporter) OutputHTML(writer io.Writer) error
- func (r *Reporter) OutputJunit(noXMLHeader bool, w io.Writer) error
- func (r *Reporter) Register(constructor ServiceConstructor) error
- func (r *Reporter) RegisterNumber() int
- func (r *Reporter) Start() error
- func (r *Reporter) Stop() error
- func (r *Reporter) Wait()
- type Service
- type ServiceConstructor
- type ServiceContext
- type TextPlainGenerate
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DuplicateError ¶
type DuplicateError struct {
// contains filtered or unexported fields
}
func (DuplicateError) Error ¶
func (d DuplicateError) Error() string
type HTMLGennerate ¶
HTMLGennerate a html gennerate inferface. reporter service need implement if can provide html report
type JunitFormater ¶
type JunitFormater interface {
ToJunit() (formater.JUnitTestSuites, error)
}
type ReportActionError ¶
type ReportActionError struct {
// contains filtered or unexported fields
}
func (ReportActionError) Error ¶
func (r ReportActionError) Error() string
type Reporter ¶
Reporter is a report service manager. responsible for the operation of the register service.
func (*Reporter) Register ¶
func (r *Reporter) Register(constructor ServiceConstructor) error
Register is add a server constructor to reporter
func (*Reporter) RegisterNumber ¶
func (*Reporter) Start ¶
Start reporter and service. disable start the report without service or is running,otherwise return error.
type ServiceConstructor ¶
type ServiceConstructor func(ctx *ServiceContext) (Service, error)
An service constructor
type ServiceContext ¶
type ServiceContext struct { // Global context contains os info GlobalCxt *context.Context // list of program run arg Flagset *pflag.FlagSet ErrH func(fm string, args ...interface{}) }
ServiceContext is a context for report work
type TextPlainGenerate ¶
TextPlainGenerate a text plain generate interface. reporter service need implement to print text plain report
Click to show internal directories.
Click to hide internal directories.