MCPcopy Index your code
hub / github.com/go-task/task / Validate

Function Validate

experiments/experiments.go:52–59  ·  view source on GitHub ↗

Validate checks if any experiments have been enabled while being inactive. If one is found, the function returns an error.

()

Source from the content-addressed store, hash-verified

50// Validate checks if any experiments have been enabled while being inactive.
51// If one is found, the function returns an error.
52func Validate() error {
53 for _, x := range List() {
54 if err := x.Valid(); err != nil {
55 return err
56 }
57 }
58 return nil
59}
60
61func List() []Experiment {
62 return xList

Callers 1

runFunction · 0.92

Calls 2

ListFunction · 0.85
ValidMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…