app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "htmlcov"
	VER  = "1.1.1"
	DESC = "Utility for converting coverage profiles into HTML pages"
)

Basic utility info

View Source
const (
	OPT_OUTPUT   = "o:output"
	OPT_REMOVE   = "R:remove"
	OPT_NO_COLOR = "nc:no-color"
	OPT_HELP     = "h:help"
	OPT_VER      = "v:version"

	OPT_VERB_VER     = "vv:verbose-version"
	OPT_COMPLETION   = "completion"
	OPT_GENERATE_MAN = "generate-man"
)

Options

View Source
const TEMPLATE = `` /* 5084-byte string literal not displayed */

TEMPLATE is HTML template

Variables

This section is empty.

Functions

func Run added in v1.1.0

func Run(gitRev string, gomod []byte)

Run is main function

Types

type CoverData

type CoverData struct {
	Files []*FileCover
	IsSet bool
}

func (*CoverData) Lines added in v1.0.0

func (c *CoverData) Lines() []int

Lines returns slice with line numbers

type FileCover

type FileCover struct {
	Name     string
	Data     template.HTML
	Lines    int
	Coverage float64
}

Jump to

Keyboard shortcuts

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