Documentation
¶
Overview ¶
Package reporter generates test reports in various formats (console, JSON, HTML).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter generates test reports in various formats
func (*Reporter) GenerateHTML ¶
GenerateHTML creates an HTML report with interactive charts
func (*Reporter) GenerateJSON ¶
GenerateJSON creates a JSON report
func (*Reporter) PrintSummary ¶
func (r *Reporter) PrintSummary()
PrintSummary prints a console summary of the results
type SlowRequestEntry ¶
SlowRequestEntry represents a slow request for template rendering.
type StatusDistributionEntry ¶
type StatusDistributionEntry struct {
StatusCode int
Count int
Percentage float64
StatusGroup string
}
StatusDistributionEntry represents a single status code distribution entry for templates.
type TemplateData ¶
type TemplateData struct {
Timestamp string
Duration string
TotalRequests int64
SuccessfulRequests int64
FailedRequests int64
URLsDiscovered int
SuccessRate float64
SuccessRateClass string
RequestsPerSecond float64
AverageResponseTime string
StatusDistribution []StatusDistributionEntry
URLValidations []URLValidationEntry
SlowRequests []SlowRequestEntry
Errors []domain.ErrorInfo
ResponseTimesMs []float64
}
TemplateData contains all data needed for HTML template rendering.
Click to show internal directories.
Click to hide internal directories.