coverage

package
v0.0.0-...-a7fb1eb Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTree

func InitTree(t *tree.Node) error

func LoadCachedTree

func LoadCachedTree(n *tree.Node) error

func WriteTreeCache

func WriteTreeCache(filename string, n *tree.Node) error

Types

type CoverageGenerator

type CoverageGenerator struct {
	// Root    url.Url
	// Depth   int
	Sources []*core.Source
	Repos   []repositories.CoverageRepository
}

CovreageGen holds configuration for coverage analysis

func NewCoverageGenerator

func NewCoverageGenerator(repoIds []string, patterns []string) *CoverageGenerator

NewCoverageGenerator creates a CoverageGenerator with the default properties

func (CoverageGenerator) Summary

func (c CoverageGenerator) Summary() (*Summary, error)

func (CoverageGenerator) Tree

func (c CoverageGenerator) Tree() (*tree.Node, error)

type CoverageRequests

type CoverageRequests int

func (CoverageRequests) Summary

func (CoverageRequests) Tree

type CoverageSummaryParams

type CoverageSummaryParams struct {
	// root url to work from
	// TODO - support root param
	// Root string
	// patterns to filter results against, optional
	Patterns []string
	// ids of repositories to limit query to, default is all
	RepoIds []string
}

func (*CoverageSummaryParams) Validate

func (p *CoverageSummaryParams) Validate() error

type CoverageTreeParams

type CoverageTreeParams struct {
	// root url to work from
	Root string
	// depth of tree to return
	Depth int
	// patterns to filter results against, optional
	Patterns []string
	// ids of repositories to limit query to, default is all
	RepoIds []string
}

func (*CoverageTreeParams) Validate

func (p *CoverageTreeParams) Validate() error

type Summary

type Summary struct {
	Archived    int
	Descendants int
}

Jump to

Keyboard shortcuts

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