coverage

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StratMaxCoverage         = "MaxCoverage"
	StratMaxCoverageWithDeps = "MaxCoverageWithDeps"
)

Variables

This section is empty.

Functions

func GetTestsMaxCoverage

func GetTestsMaxCoverage(
	testMap map[string]Test,
	apexMap map[string]Apex,
	classes, triggers []string,
) ([]string, error)

func ParseCoverage

func ParseCoverage(data []sfapi.ApexCodeCoverage) (map[string]Test, map[string]Apex)

func ParseDependencies added in v0.1.0

func ParseDependencies(
	mcd []sfapi.MetadataComponentDependency,
	classes, triggers []string,
) []string

func RequestTestsWithStrategy added in v0.1.0

func RequestTestsWithStrategy(
	strategy string,
	t sfapi.Tooling,
	classes []string,
	triggers []string,
) ([]string, error)

Types

type Apex

type Apex struct {
	Id           string
	IsTrigger    bool
	IsTest       bool
	Name         string
	Lines        int
	Coverage     map[string][]bool
	LinesCovered int
	// contains filtered or unexported fields
}

type Test

type Test struct {
	Id           string
	Name         string
	Coverage     map[string][]bool
	LinesCovered int
}

Jump to

Keyboard shortcuts

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