Documentation ¶
Index ¶
Constants ¶
View Source
const (
Key = "mad_coverage_stats"
)
Variables ¶
This section is empty.
Functions ¶
func Calc ¶
Calc returns the code covearge for the given profiles. We just take the total number of profile blocks with Count >0 divide by the total number of profile blocks.
func FormatLine ¶
FormatLine will write the same output as go test -cover does to the out writer.
Types ¶
type Handler ¶
type Handler func() []Profile
Handler is a function which returns the package profiles.
type Profile ¶
type Profile struct { FileName string Mode string Blocks []ProfileBlock }
type ProfileBlock ¶
Click to show internal directories.
Click to hide internal directories.