profile

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package profile exposes methods for working with coverage profile files and other profile related files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API contains methods for creating a coverage profile.

func New

func New(packageAPI interfaces.PackageAPI, osioAPI hostiface.OSIOAPI) *API

New returns a reference to a profile api.

func (*API) BuildAndSaveCoverageProfile

func (a *API) BuildAndSaveCoverageProfile(allPackages pckg.Group, coverageProfileName string) error

BuildAndSaveCoverageProfile builds and saves a coverage profile that can be consumed by go tool cover -html.

func (*API) OutputPercentageFile

func (a *API) OutputPercentageFile(coveragePercentage float64) error

OutputPercentageFile saves a file containing the supplied coverage percentage.

Source Files

  • api.go

Jump to

Keyboard shortcuts

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