Documentation ¶
Index ¶
- Variables
- func CheckIf(cond string) (bool, error)
- type Config
- func (c *Config) Acceptable(r *report.Report) error
- func (c *Config) Build()
- func (c *Config) BuildCentralConfig() error
- func (c *Config) BuildDatastoreConfig() error
- func (c *Config) BuildPushConfig() error
- func (c *Config) CentralConfigReady() bool
- func (c *Config) CentralPushConfigReady() bool
- func (c *Config) CodeToTestRatioBadgeConfigReady() bool
- func (c *Config) CodeToTestRatioColor(ratio float64) string
- func (c *Config) CodeToTestRatioReady() bool
- func (c *Config) CoverageBadgeConfigReady() 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) PushConfigReady() bool
- func (c *Config) Root() string
- func (c *Config) Setwd(path string)
- func (c *Config) TestExecutionTimeBadgeConfigReady() bool
- func (c *Config) TestExecutionTimeColor(d time.Duration) string
- type ConfigCentral
- type ConfigCodeToTestRatio
- type ConfigCodeToTestRatioBadge
- type ConfigCoverage
- type ConfigCoverageBadge
- type ConfigDatastore
- type ConfigDatastoreGithub
- type ConfigPush
- 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"` Datastore *ConfigDatastore `yaml:"datastore,omitempty"` Central *ConfigCentral `yaml:"central,omitempty"` Push *ConfigPush `yaml:"push,omitempty"` GitRoot string `yaml:"-"` // contains filtered or unexported fields }
func (*Config) BuildCentralConfig ¶ added in v0.2.0
func (*Config) BuildDatastoreConfig ¶
func (*Config) BuildPushConfig ¶ added in v0.9.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) CodeToTestRatioReady ¶ added in v0.6.0
func (*Config) CoverageBadgeConfigReady ¶ added in v0.6.0
func (*Config) CoverageColor ¶ added in v0.2.0
func (*Config) DatastoreConfigReady ¶
func (*Config) PushConfigReady ¶ added in v0.9.0
func (*Config) TestExecutionTimeBadgeConfigReady ¶ added in v0.7.0
type ConfigCentral ¶ added in v0.2.0
type ConfigCentral struct { Enable bool `yaml:"enable"` Root string `yaml:"root"` Reports string `yaml:"reports"` Badges string `yaml:"badges"` Push ConfigPush `yaml:"push"` }
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 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 ¶
type ConfigPush ¶ added in v0.9.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.