Documentation ¶
Index ¶
- Variables
- func Generate(ctx context.Context, lang string, wr io.Writer) error
- type Config
- func (c *Config) Acceptable(r, rPrev *report.Report) error
- func (c *Config) Build()
- func (c *Config) CentralConfigReady() error
- func (c *Config) CentralPushConfigReady() error
- func (c *Config) CheckIf(cond string) (bool, error)
- func (c *Config) CodeToTestRatioBadgeConfigReady() error
- func (c *Config) CodeToTestRatioColor(ratio float64) string
- func (c *Config) CodeToTestRatioConfigReady() error
- func (c *Config) CommentConfigReady() error
- func (c *Config) CoverageBadgeConfigReady() error
- func (c *Config) CoverageColor(cover float64) string
- func (c *Config) CoverageConfigReady() error
- func (c *Config) DiffConfigReady() error
- func (c *Config) Getwd() string
- func (c *Config) Load(path string) error
- func (c *Config) Loaded() bool
- func (c *Config) PushConfigReady() error
- func (c *Config) ReportConfigReady() error
- func (c *Config) ReportConfigTargetReady() error
- func (c *Config) Root() string
- func (c *Config) Setwd(path string)
- func (c *Config) TestExecutionTimeBadgeConfigReady() error
- func (c *Config) TestExecutionTimeColor(d time.Duration) string
- func (c *Config) TestExecutionTimeConfigReady() error
- func (c *Config) UnmarshalYAML(data []byte) error
- type ConfigCentral
- type ConfigCentralBadges
- type ConfigCentralReports
- type ConfigCodeToTestRatio
- type ConfigCodeToTestRatioBadge
- type ConfigComment
- type ConfigCoverage
- type ConfigCoverageBadge
- type ConfigDiff
- type ConfigPush
- type ConfigReport
- type ConfigTestExecutionTime
- type ConfigTestExecutionTimeBadge
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfigFilePaths = []string{".octocov.yml", "octocov.yml"}
Functions ¶
Types ¶
type Config ¶
type Config struct { Repository string `yaml:"repository"` Coverage *ConfigCoverage `yaml:"coverage"` CodeToTestRatio *ConfigCodeToTestRatio `yaml:"codeToTestRatio,omitempty"` TestExecutionTime *ConfigTestExecutionTime `yaml:"testExecutionTime,omitempty"` Report *ConfigReport `yaml:"report,omitempty"` Central *ConfigCentral `yaml:"central,omitempty"` Push *ConfigPush `yaml:"push,omitempty"` Comment *ConfigComment `yaml:"comment,omitempty"` Diff *ConfigDiff `yaml:"diff,omitempty"` GitRoot string `yaml:"-"` // contains filtered or unexported fields }
func (*Config) Acceptable ¶ added in v0.8.0
func (*Config) CentralConfigReady ¶ added in v0.2.0
func (*Config) CentralPushConfigReady ¶ added in v0.9.0
func (*Config) CodeToTestRatioBadgeConfigReady ¶ added in v0.6.0
func (*Config) CodeToTestRatioColor ¶ added in v0.6.0
func (*Config) CodeToTestRatioConfigReady ¶ added in v0.12.0
func (*Config) CommentConfigReady ¶ added in v0.11.0
func (*Config) CoverageBadgeConfigReady ¶ added in v0.6.0
func (*Config) CoverageColor ¶ added in v0.2.0
func (*Config) CoverageConfigReady ¶ added in v0.12.0
func (*Config) DiffConfigReady ¶ added in v0.20.0
func (*Config) PushConfigReady ¶ added in v0.9.0
func (*Config) ReportConfigReady ¶ added in v0.14.0
func (*Config) ReportConfigTargetReady ¶ added in v0.20.1
func (*Config) TestExecutionTimeBadgeConfigReady ¶ added in v0.7.0
func (*Config) TestExecutionTimeColor ¶ added in v0.7.0
func (*Config) TestExecutionTimeConfigReady ¶ added in v0.12.0
func (*Config) UnmarshalYAML ¶ added in v0.38.0
type ConfigCentral ¶ added in v0.2.0
type ConfigCentral struct { Root string `yaml:"root"` Reports ConfigCentralReports `yaml:"reports"` Badges ConfigCentralBadges `yaml:"badges"` Push *ConfigPush `yaml:"push,omitempty"` If string `yaml:"if,omitempty"` }
func (*ConfigCentral) UnmarshalYAML ¶ added in v0.38.0
func (c *ConfigCentral) UnmarshalYAML(data []byte) error
type ConfigCentralBadges ¶ added in v0.27.0
type ConfigCentralBadges struct {
Datastores []string `yaml:"datastores"`
}
type ConfigCentralReports ¶ added in v0.14.0
type ConfigCentralReports struct {
Datastores []string `yaml:"datastores"`
}
type ConfigCodeToTestRatio ¶ added in v0.6.0
type ConfigCodeToTestRatio struct { Code []string `yaml:"code"` Test []string `yaml:"test"` Badge ConfigCodeToTestRatioBadge `yaml:"badge,omitempty"` Acceptable string `yaml:"acceptable,omitempty"` }
type ConfigCodeToTestRatioBadge ¶ added in v0.6.0
type ConfigCodeToTestRatioBadge struct {
Path string `yaml:"path,omitempty"`
}
type ConfigComment ¶ added in v0.11.0
type ConfigCoverage ¶
type ConfigCoverage struct { Path string `yaml:"path,omitempty"` Paths []string `yaml:"paths,omitempty"` Badge ConfigCoverageBadge `yaml:"badge,omitempty"` Acceptable string `yaml:"acceptable,omitempty"` }
type ConfigCoverageBadge ¶ added in v0.3.0
type ConfigCoverageBadge struct {
Path string `yaml:"path,omitempty"`
}
type ConfigDiff ¶ added in v0.20.0
type ConfigPush ¶ added in v0.9.0
type ConfigPush struct {
If string `yaml:"if,omitempty"`
}
type ConfigReport ¶ added in v0.14.0
type ConfigTestExecutionTime ¶ added in v0.7.0
type ConfigTestExecutionTime struct { Badge ConfigTestExecutionTimeBadge `yaml:"badge,omitempty"` Acceptable string `yaml:"acceptable,omitempty"` Steps []string `yaml:"steps,omitempty"` }
type ConfigTestExecutionTimeBadge ¶ added in v0.7.0
type ConfigTestExecutionTimeBadge struct {
Path string `yaml:"path,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.