func (c *Coverage) GetPrerequisites() []CheckPrerequisite {
	if c.isGoverallsEnabled() {
		return []CheckPrerequisite{{[]string{"goveralls", "-h"}, 2, "github.com/mattn/goveralls"}}
	}
	return nil
}
GetPrerequisites implements Check.
package checks
import (
	"bufio"
	"bytes"
	"errors"
	"fmt"
	"io"
	"io/ioutil"
	"log"
	"os"
	"path/filepath"
	"sort"
	"strconv"
	"strings"
	"time"
	"github.com/maruel/pre-commit-go/checks/internal/cover"
	"github.com/maruel/pre-commit-go/internal"
	"github.com/maruel/pre-commit-go/scm"
)
type Coverage struct {
	UseGlobalInference bool                         `yaml:"use_global_inference"`
	UseCoveralls       bool                         `yaml:"use_coveralls"`
	Global             CoverageSettings             `yaml:"global"`
	PerDirDefault      CoverageSettings             `yaml:"per_dir_default"`
	PerDir             map[string]*CoverageSettings `yaml:"per_dir"`
	IgnorePathPatterns []string                     `yaml:"ignore_path_patterns"`
}
type CoverageSettings struct {
	MinCoverage float64 `yaml:"min_coverage"`
	MaxCoverage float64 `yaml:"max_coverage"`
}
func (c *Coverage) GetDescription() string {
	return "enforces minimum test coverage on all packages"
}
func (c *Coverage) GetName() string {
	return "coverage"
}