mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-05 13:32:54 -05:00
Move packages out of pkg/
This commit is contained in:
25
parser/gotest/event.go
Normal file
25
parser/gotest/event.go
Normal file
@ -0,0 +1,25 @@
|
||||
package gotest
|
||||
|
||||
import "time"
|
||||
|
||||
// Event is a single event in a Go test or benchmark.
|
||||
type Event struct {
|
||||
Type string `json:"type"`
|
||||
|
||||
Name string `json:"name,omitempty"`
|
||||
Result string `json:"result,omitempty"`
|
||||
Duration time.Duration `json:"duration,omitempty"`
|
||||
Data string `json:"data,omitempty"`
|
||||
Indent int `json:"indent,omitempty"`
|
||||
|
||||
// Code coverage
|
||||
CovPct float64 `json:"coverage_percentage,omitempty"`
|
||||
CovPackages []string `json:"coverage_packages,omitempty"`
|
||||
|
||||
// Benchmarks
|
||||
Iterations int64 `json:"benchmark_iterations,omitempty"`
|
||||
NsPerOp float64 `json:"benchmark_ns_per_op,omitempty"`
|
||||
MBPerSec float64 `json:"benchmark_mb_per_sec,omitempty"`
|
||||
BytesPerOp int64 `json:"benchmark_bytes_per_op,omitempty"`
|
||||
AllocsPerOp int64 `json:"benchmark_allocs_per_op,omitempty"`
|
||||
}
|
Reference in New Issue
Block a user