parser

package
v0.0.0-...-6db6af2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultParser

type DefaultParser struct {
	// contains filtered or unexported fields
}

DefaultParser parser is a fallback parser

func NewDefaultParser

func NewDefaultParser(line string) *DefaultParser

NewDefaultParser returns a new instance of DefaultParser

func (*DefaultParser) IsAbleToParse

func (d *DefaultParser) IsAbleToParse() bool

IsAbleToParse will say this parser is able to parse the given text

func (*DefaultParser) Println

func (d *DefaultParser) Println()

Println will print the line with formatting and colors

func (*DefaultParser) UpdateReports

func (d *DefaultParser) UpdateReports(s *Scanner, wg *sync.WaitGroup)

UpdateReports will update the reports and temp map by reference

type DescriptionParser

type DescriptionParser struct {
	// contains filtered or unexported fields
}

DescriptionParser parses test execution descriptions

func NewDescriptionParser

func NewDescriptionParser(line string) *DescriptionParser

NewDescriptionParser returns a new instance of DescriptionParser

func (*DescriptionParser) IsAbleToParse

func (d *DescriptionParser) IsAbleToParse() bool

IsAbleToParse will say this parser is able to parse the given text

func (*DescriptionParser) Println

func (d *DescriptionParser) Println()

Println will print the line with formatting and colors

func (*DescriptionParser) UpdateReports

func (d *DescriptionParser) UpdateReports(s *Scanner, wg *sync.WaitGroup)

UpdateReports will update the reports and temp map by reference

type ErrorParser

type ErrorParser struct {
	// contains filtered or unexported fields
}

ErrorParser parser will parse error messages

func NewErrorParser

func NewErrorParser(line string) *ErrorParser

NewErrorParser returns a new instance of ErrorParser

func (*ErrorParser) IsAbleToParse

func (d *ErrorParser) IsAbleToParse() bool

IsAbleToParse will say this parser is able to parse the given text

func (*ErrorParser) Println

func (d *ErrorParser) Println()

Println will print the line with formatting and colors

func (*ErrorParser) UpdateReports

func (d *ErrorParser) UpdateReports(s *Scanner, wg *sync.WaitGroup)

UpdateReports will update the reports and temp map by reference

type PackageStatusParser

type PackageStatusParser struct {
	// contains filtered or unexported fields
}

PackageStatusParser parses package status

func NewPackageStatusParser

func NewPackageStatusParser(line string) *PackageStatusParser

NewPackageStatusParser returns a new instance of PackageStatusParser

func (*PackageStatusParser) IsAbleToParse

func (d *PackageStatusParser) IsAbleToParse() bool

IsAbleToParse will say this parser is able to parse the given text

func (*PackageStatusParser) Println

func (d *PackageStatusParser) Println()

Println will print the line with formatting and colors

func (*PackageStatusParser) UpdateReports

func (d *PackageStatusParser) UpdateReports(s *Scanner, wg *sync.WaitGroup)

UpdateReports will update the reports and temp map by reference

type Parser

type Parser interface {
	IsAbleToParse() bool
	UpdateReports(*Scanner, *sync.WaitGroup)
	Println()
}

Parser is the interface of public methods implemeted by parsers

func GetParser

func GetParser(txt string, failFunc string) Parser

GetParser is a factory for parsers

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

Scanner will scan stdin and generates reports

func NewScanner

func NewScanner() *Scanner

NewScanner will return a new instance of Scanner

func (*Scanner) ParseTestReport

func (sc *Scanner) ParseTestReport(r io.Reader) *reports.Report

ParseTestReport will parse reports

func (*Scanner) ResetIterator

func (sc *Scanner) ResetIterator()

ResetIterator will reset the iterator

func (*Scanner) ResetLastErrorFunc

func (sc *Scanner) ResetLastErrorFunc()

ResetLastErrorFunc will reset the errorfunc

type SpippedPackageParser

type SpippedPackageParser struct {
	// contains filtered or unexported fields
}

SpippedPackageParser parses test execution SpippedPackages

func NewSpippedPackageParser

func NewSpippedPackageParser(line string) *SpippedPackageParser

NewSpippedPackageParser returns a new instance of SpippedPackageParser

func (*SpippedPackageParser) IsAbleToParse

func (d *SpippedPackageParser) IsAbleToParse() bool

IsAbleToParse will say this parser is able to parse the given text

func (*SpippedPackageParser) Println

func (d *SpippedPackageParser) Println()

Println will print the line with formatting and colors

func (*SpippedPackageParser) UpdateReports

func (d *SpippedPackageParser) UpdateReports(s *Scanner, wg *sync.WaitGroup)

UpdateReports will update the reports and temp map by reference

type TestStatusParser

type TestStatusParser struct {
	// contains filtered or unexported fields
}

TestStatusParser parses test execution status

func NewTestStatusParser

func NewTestStatusParser(line string) *TestStatusParser

NewTestStatusParser returns a new instance of TestStatusParser

func (*TestStatusParser) IsAbleToParse

func (d *TestStatusParser) IsAbleToParse() bool

IsAbleToParse will say this parser is able to parse the given text

func (*TestStatusParser) Println

func (d *TestStatusParser) Println()

Println will print the line with formatting and colors

func (*TestStatusParser) UpdateReports

func (d *TestStatusParser) UpdateReports(s *Scanner, wg *sync.WaitGroup)

UpdateReports will update the reports and temp map by reference

Jump to

Keyboard shortcuts

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