Documentation ¶
Index ¶
- Variables
- type Config
- func (c *Config) Accepptable(r *report.Report) error
- func (c *Config) BadgeConfigReady() bool
- func (c *Config) Build()
- func (c *Config) BuildCentralConfig() error
- func (c *Config) BuildDatastoreConfig() error
- func (c *Config) CentralConfigReady() bool
- func (c *Config) CoverageColor(cover float64) string
- func (c *Config) DatastoreConfigReady() bool
- func (c *Config) Getwd() string
- func (c *Config) Load(path string) error
- func (c *Config) Loaded() bool
- func (c *Config) Root() string
- func (c *Config) Setwd(path string)
- type ConfigCentral
- type ConfigCoverage
- type ConfigCoverageBadge
- type ConfigDatastore
- type ConfigDatastoreGithub
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfigFilePaths = []string{".octocov.yml", "octocov.yml"}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Repository string `yaml:"repository"` Coverage *ConfigCoverage `yaml:"coverage"` // CodeToTestRatio *ConfigCodeToTestRatio `yaml:"codeToTestRatio,omitempty"` Datastore *ConfigDatastore `yaml:"datastore,omitempty"` Central *ConfigCentral `yaml:"central,omitempty"` // contains filtered or unexported fields }
func (*Config) BadgeConfigReady ¶
func (*Config) BuildCentralConfig ¶ added in v0.2.0
func (*Config) BuildDatastoreConfig ¶
func (*Config) CentralConfigReady ¶ added in v0.2.0
func (*Config) CoverageColor ¶ added in v0.2.0
func (*Config) DatastoreConfigReady ¶
type ConfigCentral ¶ added in v0.2.0
type ConfigCoverage ¶
type ConfigCoverage struct { Path string `yaml:"path,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 ConfigDatastore ¶
type ConfigDatastore struct { If string `yaml:"if,omitempty"` Github *ConfigDatastoreGithub `yaml:"github,omitempty"` }
type ConfigDatastoreGithub ¶
Click to show internal directories.
Click to hide internal directories.