Documentation ¶
Index ¶
- func FromJSONString(obj interface{}, r io.Reader) error
- func JSONFormat(output OutputDTO) (string, error)
- func MarkdownFormat(output OutputDTO) (string, error)
- func TabFormat(output OutputDTO) (string, error)
- func ToJSON(obj interface{}, w io.Writer) error
- type Color
- type CoverageConfig
- type CoverageOutputDTO
- type DirectoriesOutputDTO
- type DirectoryOutputDTO
- type ErrorOutputDTO
- type FileOutputDTO
- type FilesOutputDTO
- type Formatter
- type FuncsOutputDTO
- type LimgoConfig
- type Matcher
- type OutputDTO
- type StatisticConfig
- type StatisticOutputDTO
- type Threshold
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromJSONString ¶
func JSONFormat ¶
func MarkdownFormat ¶
Types ¶
type Color ¶
type Color string
const ( ColorRed Color = "\033[31m" ColorGreen Color = "\033[32m" ColorYellow Color = "\033[33m" ColorBlue Color = "\033[34m" ColorPurple Color = "\033[35m" ColorCyan Color = "\033[36m" ColorWhite Color = "\033[37m" )
ASCII escape codes for colors, see: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
type CoverageConfig ¶
type CoverageOutputDTO ¶
type DirectoriesOutputDTO ¶
type DirectoriesOutputDTO map[string]DirectoryOutputDTO
type DirectoryOutputDTO ¶
type DirectoryOutputDTO struct { Coverage CoverageOutputDTO `json:"coverage"` Files FilesOutputDTO `json:"files,omitempty"` }
type ErrorOutputDTO ¶
type ErrorOutputDTO struct { AffectedFile string `json:"affectedFile"` Type string `json:"type"` ExpectedThreshold string `json:"expectedThreshold"` ActualCovered string `json:"actualCovered"` }
func OutputDTOFromCovErrors ¶
func OutputDTOFromCovErrors(covErrs []evaluation.CoverageError) []ErrorOutputDTO
type FileOutputDTO ¶
type FileOutputDTO struct { Coverage CoverageOutputDTO `json:"coverage"` Funcs FuncsOutputDTO `json:"funcs,omitempty"` }
type FilesOutputDTO ¶
type FilesOutputDTO map[string]FileOutputDTO
type FuncsOutputDTO ¶
type FuncsOutputDTO map[string]CoverageOutputDTO
type LimgoConfig ¶
type LimgoConfig struct { CoverageConfig `json:"coverage"` StatisticConfig `json:"statistic"` }
func ConfigFromJSONString ¶
func ConfigFromJSONString(r io.Reader) (LimgoConfig, error)
type OutputDTO ¶
type OutputDTO struct { Statistic *StatisticOutputDTO `json:"statistic,omitempty"` CoverageErrors []ErrorOutputDTO `json:"coverageErrors,omitempty"` }
func NewOutputDTO ¶
func NewOutputDTO(stats *statistic.ModuleStatistic, covErrs []evaluation.CoverageError) OutputDTO
type StatisticConfig ¶
type StatisticConfig struct {
Excludes []string `json:"excludes"`
}
type StatisticOutputDTO ¶
type StatisticOutputDTO struct { Module string `json:"module"` Coverage CoverageOutputDTO `json:"coverage"` Directories DirectoriesOutputDTO `json:"directories,omitempty"` }
func OutputDTOFromStatistic ¶
func OutputDTOFromStatistic(stats *statistic.ModuleStatistic) StatisticOutputDTO
Click to show internal directories.
Click to hide internal directories.