reportgenerator

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Name     string          `json:"name"`
	Date     string          `json:"date"`
	Status   string          `json:"status"`
	Total    int             `json:"total"`
	Success  int             `json:"success"`
	Fail     int             `json:"fail"`
	Requests []RequestReport `json:"requests"`
}

func NewReport

func NewReport() *Report

func (*Report) AddRequest

func (r *Report) AddRequest(url string, expectedResponse, actualResponse int, htmlValues []string)

func (*Report) Analyze

func (r *Report) Analyze()

func (*Report) SaveToFile

func (r *Report) SaveToFile(filePath string) error

type RequestReport

type RequestReport struct {
	URL              string   `json:"url"`
	ExpectedResponse int      `json:"expectedResponse"`
	ActualResponse   int      `json:"actualResponse"`
	HtmlValues       []string `json:"htmlValues"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL