Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeNumber = iota TypePercentage )
View Source
const ( MethodWorst = "worst" )
View Source
const (
TypeJUnit = "junit"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
Get(settingType string) (StateSetting, error)
}
func NewMongoAdapter ¶
type JUnitThresholds ¶
type JUnitThresholds struct { Skipped StateThresholds `bson:"skipped"` Errors StateThresholds `bson:"errors"` Failures StateThresholds `bson:"failures"` }
func (JUnitThresholds) GetState ¶
func (s JUnitThresholds) GetState(skipped, errors, failures, total int64) int
type StateSetting ¶
type StateSetting struct { ID string `bson:"_id"` Type string `bson:"type"` Method string `bson:"method"` JUnitThresholds *JUnitThresholds `bson:"junit_thresholds,omitempty"` }
func DefaultWorst ¶
func DefaultWorst() StateSetting
Click to show internal directories.
Click to hide internal directories.