Versions in this module Expand all Collapse all v1 v1.0.1 Mar 29, 2023 Changes in this version + func ReportForGithubAction(result AnalyzeResult, cfg Config) + func ReportForHuman(result AnalyzeResult, cfg Config) + type AnalyzeResult struct + FilesBelowThreshold []CoverageStats + MeetsTotalCoverage bool + PackagesBelowThreshold []CoverageStats + TotalCoverage int + func (r *AnalyzeResult) Pass() bool type Config + GithubActionOutput bool v1.0.0 Mar 25, 2023 Changes in this version + var ErrCoverageProfileNotSpecified = fmt.Errorf("coverage profile file not specified") + var ErrThresholdNotInRange = fmt.Errorf("threshold must be in range [0 - 100]") + func Analyze(cfg Config, coverageStats []CoverageStats) bool + type Config struct + LocalPrefix string + Profile string + Threshold Threshold + func ConfigFromFile(filename string) (*Config, error) + func NewConfig() Config + func (c Config) Validate() error + type CoverageStats struct + func GenerateCoverageStats(profileFileName string) ([]CoverageStats, error) + func (s *CoverageStats) CoveredPercentage() int + type FuncExtent struct + type FuncVisitor struct + func (v *FuncVisitor) Visit(node ast.Node) ast.Visitor + type Threshold struct + File int + Package int + Total int Other modules containing this package github.com/vladopajic/go-test-coverage/v2