junit

package
v0.0.0-...-d682fd2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(result *checker.CheckResult, writer io.Writer) error

func WriteToFile

func WriteToFile(result *checker.CheckResult, outPath typedpath.RawPath) error

Types

type Failure

type Failure struct {
	XMLName  xml.Name `xml:"failure"`
	Message  string   `xml:"message,attr"`
	Type     string   `xml:"type,attr"`
	Contents string   `xml:",chardata"`
}

type Properties

type Properties struct {
	XMLName    xml.Name   `xml:"properties"`
	Properties []Property `xml:"property"`
}

type Property

type Property struct {
	XMLName xml.Name `xml:"property"`
	Name    string   `xml:"name,attr"`
	Value   string   `xml:"value,attr"`
}

type TestCase

type TestCase struct {
	XMLName   xml.Name `xml:"testcase"`
	ClassName string   `xml:"classname,attr"`
	Name      string   `xml:"name,attr"`
	Time      string   `xml:"time,attr"`
	File      *string  `xml:"file,attr,omitempty"`
	Failure   *Failure `xml:"failure,omitempty"`
}

type TestSuite

type TestSuite struct {
	XMLName    xml.Name   `xml:"testsuite"`
	Tests      int        `xml:"tests,attr"`
	Failures   int        `xml:"failures,attr"`
	Time       string     `xml:"time,attr"`
	Name       string     `xml:"name,attr"`
	File       *string    `xml:"file,attr,omitempty"`
	Properties Properties `xml:"properties"`
	TestCases  []TestCase `xml:"testcase"`
}

type TestSuites

type TestSuites struct {
	XMLName    xml.Name    `xml:"testsuites"`
	TestSuites []TestSuite `xml:"testsuite"`
}

type WriteToFileCallArgs

type WriteToFileCallArgs struct {
	CheckResult *checker.CheckResult
	OutPath     typedpath.RawPath
}

type WriteToFileFunc

type WriteToFileFunc func(result *checker.CheckResult, outPath typedpath.RawPath) error

func SpyWriteToFileFunc

func SpyWriteToFileFunc(inherited WriteToFileFunc, callArgs *[]WriteToFileCallArgs) WriteToFileFunc

func StubWriteToFileFunc

func StubWriteToFileFunc(err error) WriteToFileFunc

Jump to

Keyboard shortcuts

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