raw

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 raw exposes lower level methods that interact with the 'go' CLI.

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 gathering coverage statistics.

func New

func New(osioAPI hostiface.OSIOAPI, execAPI hostiface.ExecAPI) *API

New returns a reference to an API

func (*API) AggregateRawPackageAnalysisData

func (a *API) AggregateRawPackageAnalysisData(pkg string, rawPkgCoverageData []string) (*pckg.Stats, error)

AggregateRawPackageAnalysisData reduces raw coveraeg data to a structured object that contains summarized information about the analysis.

func (*API) GetRawCoverageAnalysisForPackage

func (a *API) GetRawCoverageAnalysisForPackage(pkg string) ([]string, bool, error)

GetRawCoverageAnalysisForPackage shells out a go test command and returns three values: - The raw coverage results for the package - Whether or not the package's unit tests failed. - An error, should one have occurred during processing.

Source Files

  • api.go

Jump to

Keyboard shortcuts

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