Documentation ¶
Overview ¶
testresult is an implementation of Chromium's JSON test result format. See https://chromium.googlesource.com/chromium/src/+/master/docs/testing/json_test_results_format.md
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Results ¶
type Results struct { Version int `json:"version"` Interrupted bool `json:"interrupted"` PathDelimiter string `json:"path_delimiter"` SecondsSinceEpoch float64 `json:"seconds_since_epoch"` NumFailuresByType map[string]int `json:"num_failures_by_type"` Tests map[string]Result `json:"tests"` }
Results stores the top-level test results.
func NewResults ¶
func NewResults() *Results
func (*Results) AddResult ¶
AddResult records a test result with the given result string. The test is a failure if the result is not "PASS".
func (*Results) HasUnexpectedResults ¶
func (*Results) WriteToFile ¶
Click to show internal directories.
Click to hide internal directories.