Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int
see https://pkg.go.dev/cmd/test2json#hdr-Output_Format
func (Action) MarshalJSON ¶ added in v0.0.6
func (*Action) UnmarshalJSON ¶ added in v0.0.6
type Event ¶ added in v0.0.4
type Event struct { Time time.Time `json:"Time"` Action Action `json:"Action"` Output string `json:"Output"` Test string `json:"Test"` Package string `json:"Package"` Elapsed float64 `json:"Elapsed"` // Elapsed is the number of seconds that have passed. }
func (*Event) PackageEvent ¶ added in v0.0.6
PackageEvent returns true if the event is a package event (no test referenced in event).
type PackageEvents ¶ added in v0.0.6
func ByPackage ¶ added in v0.0.6
func ByPackage(events []Event) []*PackageEvents
func ReadByPackage ¶ added in v1.1.0
func ReadByPackage(r io.Reader) ([]*PackageEvents, error)
func (*PackageEvents) Add ¶ added in v0.0.6
func (pe *PackageEvents) Add(e Event)
Click to show internal directories.
Click to hide internal directories.