model

package
v0.0.0-...-1589fda Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckSuite

type CheckSuite struct {
	All      []*github.CheckRun
	Selected *github.CheckRun
}

type Logs

type Logs []Step

func LogsFromFile

func LogsFromFile(logPath string) (Logs, error)

func (Logs) HaveUnhandledFailures

func (l Logs) HaveUnhandledFailures() bool

func (Logs) TestCount

func (l Logs) TestCount() int

func (Logs) Toggle

func (l Logs) Toggle(id int)

type Parser

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

func NewParser

func NewParser(testSuiteChan chan TestSuite, lineChan chan string, doneChan chan bool) *Parser

func (*Parser) ParseGoTestStdin

func (p *Parser) ParseGoTestStdin(stdin io.Reader)

func (*Parser) ParseGoTestStep

func (p *Parser) ParseGoTestStep(id *int, step *Step)

type Step

type Step struct {
	ID       int
	Title    string
	Selected bool
	Success  bool

	Lines      []string
	TestSuites []TestSuite
}

func (*Step) FailedTestSuites

func (s *Step) FailedTestSuites() []TestSuite

func (*Step) HaveUnhandledFailures

func (s *Step) HaveUnhandledFailures() bool

func (*Step) IsTest

func (s *Step) IsTest() bool

type TestRun

type TestRun struct {
	ID       int
	Name     string
	Success  bool
	Selected bool

	Lines []string
}

type TestSuite

type TestSuite struct {
	ID        int
	Title     string
	Selected  bool
	TestCount int

	TestRuns []TestRun
}

func (*TestSuite) FailedTestRuns

func (s *TestSuite) FailedTestRuns() []TestRun

Jump to

Keyboard shortcuts

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