Documentation ¶
Index ¶
- Variables
- func Generate(ctx context.Context, lang string, wr io.Writer) error
- type Body
- type Central
- type CentralBadges
- type CentralReports
- type CodeToTestRatio
- type CodeToTestRatioBadge
- type Comment
- type Config
- func (c *Config) Acceptable(r, rPrev *report.Report) error
- func (c *Config) BodyConfigReady() error
- func (c *Config) Build()
- func (c *Config) CentralConfigReady() error
- func (c *Config) CentralPushConfigReady() error
- func (c *Config) CentralReReportReady() 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) 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) SummaryConfigReady() error
- 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
- func (c *Config) Wd() string
- type Coverage
- type CoverageBadge
- type Diff
- type Push
- type Report
- type Summary
- type TestExecutionTime
- type TestExecutionTimeBadge
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPaths = []string{".octocov.yml", "octocov.yml"}
Functions ¶
Types ¶
type Central ¶ added in v0.49.0
type Central struct { Root string `yaml:"root"` Reports CentralReports `yaml:"reports"` Badges CentralBadges `yaml:"badges"` Push *Push `yaml:"push,omitempty"` ReReport *Report `yaml:"reReport,omitempty"` If string `yaml:"if,omitempty"` }
func (*Central) UnmarshalYAML ¶ added in v0.49.0
type CentralBadges ¶ added in v0.49.0
type CentralBadges struct {
Datastores []string `yaml:"datastores"`
}
type CentralReports ¶ added in v0.49.0
type CentralReports struct {
Datastores []string `yaml:"datastores"`
}
type CodeToTestRatio ¶ added in v0.49.0
type CodeToTestRatio struct { Code []string `yaml:"code"` Test []string `yaml:"test"` Badge CodeToTestRatioBadge `yaml:"badge,omitempty"` Acceptable string `yaml:"acceptable,omitempty"` If string `yaml:"if,omitempty"` }
type CodeToTestRatioBadge ¶ added in v0.49.0
type CodeToTestRatioBadge struct {
Path string `yaml:"path,omitempty"`
}
type Config ¶
type Config struct { Repository string `yaml:"repository"` Coverage *Coverage `yaml:"coverage"` CodeToTestRatio *CodeToTestRatio `yaml:"codeToTestRatio,omitempty"` TestExecutionTime *TestExecutionTime `yaml:"testExecutionTime,omitempty"` Report *Report `yaml:"report,omitempty"` Central *Central `yaml:"central,omitempty"` Push *Push `yaml:"push,omitempty"` Comment *Comment `yaml:"comment,omitempty"` Summary *Summary `yaml:"summary,omitempty"` Body *Body `yaml:"body,omitempty"` Diff *Diff `yaml:"diff,omitempty"` Timeout time.Duration `yaml:"timeout,omitempty"` GitRoot string `yaml:"-"` // contains filtered or unexported fields }
func (*Config) Acceptable ¶ added in v0.8.0
func (*Config) BodyConfigReady ¶ added in v0.43.0
func (*Config) CentralConfigReady ¶ added in v0.2.0
func (*Config) CentralPushConfigReady ¶ added in v0.9.0
func (*Config) CentralReReportReady ¶ added in v0.45.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) SummaryConfigReady ¶ added in v0.42.0
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 Coverage ¶ added in v0.49.0
type Coverage struct { Path string `yaml:"path,omitempty"` Paths []string `yaml:"paths,omitempty"` Badge CoverageBadge `yaml:"badge,omitempty"` Acceptable string `yaml:"acceptable,omitempty"` If string `yaml:"if,omitempty"` }
type CoverageBadge ¶ added in v0.49.0
type CoverageBadge struct {
Path string `yaml:"path,omitempty"`
}
type TestExecutionTime ¶ added in v0.49.0
type TestExecutionTime struct { Badge TestExecutionTimeBadge `yaml:"badge,omitempty"` Acceptable string `yaml:"acceptable,omitempty"` Steps []string `yaml:"steps,omitempty"` If string `yaml:"if,omitempty"` }
type TestExecutionTimeBadge ¶ added in v0.49.0
type TestExecutionTimeBadge struct {
Path string `yaml:"path,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.