report

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenHTMLReport

func GenHTMLReport(outPath string, conf utils.ShirazConfig) error

Entry point of report generation

It takes the path of the `.out` file, analyze it, and generate the HTML reports

Types

type Pkg

type Pkg struct {
	ImportPath string
	Dir        string
	Error      *struct {
		Err string
	}
}

type ReportFile

type ReportFile struct {
	Name         string
	Path         string
	Body         template.HTML
	Coverage     float64
	BlockCovered int64
	BlockTotal   int64
}

type ReportFolder

type ReportFolder struct {
	Name         string
	RelativePath string
	AbsolutePath string
	Coverage     float64
	BlockCovered int64
	BlockTotal   int64
	Subfolders   []ReportFolder
	Files        []ReportFile
}

func (*ReportFolder) AddFile

func (f *ReportFolder) AddFile(p ReportFile) []ReportFile

func (ReportFolder) GetCoverage

func (f ReportFolder) GetCoverage() ReportFolderCoverage

type ReportFolderCoverage

type ReportFolderCoverage struct {
	Total          float64
	UndividedTotal float64
	Files          float64
	Folders        float64
	TotalFileCount int
}

Jump to

Keyboard shortcuts

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