coverstatus

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package coverstatus contains coverage color-coding and labeling for generating reports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status int

Status represents a coverage status level, ranging from "excellent" to "error"

func New

func New(f float64) Status

New categorizes the given percentage (between 0 and 1) as a coverage status

func (Status) Colorize

func (s Status) Colorize(str string) string

Colorize formats 'str' with this status's assigned color

func (Status) Emoji

func (s Status) Emoji() string

Emoji returns this status's assigned emoji

func (Status) WorkflowCommand

func (s Status) WorkflowCommand() string

WorkflowCommand returns a GitHub Actions workflow command for this coverage status. These are specifically the log "level" commands.

Jump to

Keyboard shortcuts

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