Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { TestCase *model.TestCase ResponseTime time.Duration // Http Response Time ResponseSize int // Size in bytes of the HTTP Response body }
func NewMetrics ¶
func (Metrics) MarshalJSON ¶ added in v1.1.6
MarshalJSON is a custom marshaler which formats a Metrics struct with a response time represented as unit of milliseconds response time decimal precision is up the nanosecond eg: 1.234ms
type TestCase ¶
type TestCase struct { Id string `json:"id"` Pass bool `json:"pass"` Metrics Metrics `json:"metrics"` Fail []string `json:"fail,omitempty"` Detail string `json:"detail"` RefURI string `json:"refURI"` Endpoint string `json:"endpoint"` API string `json:"-"` APIVersion string `json:"-"` }
TestCase result for a run
Click to show internal directories.
Click to hide internal directories.